package com.handydata.antifraud.ws.dap;

import java.util.Date;
import java.util.UUID;

import javax.annotation.PostConstruct;

import lombok.extern.slf4j.Slf4j;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;
import com.handydata.antifraud.annotation.Comment;
import com.handydata.antifraud.bo.dataBaiRongInfo.DataBaiRongInfoReqBO;
import com.handydata.antifraud.bo.datacalllogs.DataCallLogsReqBO;
import com.handydata.antifraud.common.constant.DataSourceCode;
import com.handydata.antifraud.service.DataBaiRongInfoService;
import com.handydata.antifraud.service.DataCallLogsService;
import com.handydata.antifraud.to.dap.BaiRongReqTO;
import com.handydata.antifraud.to.dap.BaiRongResTO;
import com.handydata.antifraud.util.DateUtil;
import com.handydata.antifraud.util.encrypt.Md5Utils;
import com.handydata.antifraud.ws.WsInvocationService;

/**
 * 百融画像评估查询
 */
@Slf4j
@Service("baiRongWsService")
@Comment("百融画像评估查询")
public class BaiRongWsServiceImpl extends
		DataPlatformWsService<BaiRongReqTO, BaiRongResTO> implements
		WsInvocationService<BaiRongReqTO, BaiRongResTO> {

	@Autowired
	private DataCallLogsService dataCallLogsService;
	@Autowired
	private DataBaiRongInfoService dataBaiRongInfoService;

	public BaiRongWsServiceImpl(DataCallLogsService dataCallLogsService) {
		this.dataCallLogsService = dataCallLogsService;
	}

	@Override
	public BaiRongResTO query(BaiRongReqTO req) {
		log.info("百融画像评估查询请求参数 {}", req);
		BaiRongResTO resTO = new BaiRongResTO();
		if (StringUtils.isEmpty(req.getIdCard())) {
			log.error("百融画像评估查询参数校验 {}", "cid为空");
			resTO.setResCode("1111");
			resTO.setResMsg("百融画像评估查询接口cid参数为空");
			return resTO;
		}
		if (StringUtils.isEmpty(req.getName())) {
			log.error("百融画像评估查询参数校验 {}", "name为空");
			resTO.setResCode("1111");
			resTO.setResMsg("百融画像评估查询接口name参数为空");
			return resTO;
		}
		if (StringUtils.isEmpty(req.getPhoneNum())) {
			log.error("百融画像评估查询参数校验 {}", "phoneNum为空");
			resTO.setResCode("1111");
			resTO.setResMsg("百融画像评估查询接口phone参数为空");
			return resTO;
		}
		this.dataType = DataSourceCode.BAI_RONG.getCode();
		long startDate = new Date().getTime();
		handleRequestParam(req);
		try {
			resTO = executeQuery(req);
			long endDate = new Date().getTime();
			int aa = Integer.valueOf(String.valueOf((endDate - startDate)));
			DataCallLogsReqBO dataCallLogsReqBO = new DataCallLogsReqBO();
			dataCallLogsReqBO.setId(UUID.randomUUID().toString().replace("-", ""));
			dataCallLogsReqBO.setParams(JSONObject.toJSONString(req));
			dataCallLogsReqBO.setElapsed(aa);
			dataCallLogsReqBO.setWselapsed(aa);
			dataCallLogsReqBO.setId(UUID.randomUUID().toString().replace("-", ""));
			dataCallLogsReqBO.setOrderId(req.getOrderId());
			dataCallLogsReqBO.setDataType(DataSourceCode.BAI_RONG.getCode());
			dataCallLogsReqBO.setResult(resTO.getResData());
			dataCallLogsReqBO.setResCode(resTO.getResCode());
			dataCallLogsReqBO.setResMsg(resTO.getResMsg());
			dataCallLogsReqBO.setCreateTime(new Date());
			dataCallLogsReqBO.setUpdateTime(new Date());
			dataCallLogsService.createDataCallLogs(dataCallLogsReqBO);
		} catch (Exception e) {
			DataBaiRongInfoReqBO dataBaiRongInfoReqBO = new DataBaiRongInfoReqBO();
			dataBaiRongInfoReqBO.setOrderId(req.getOrderId());
			dataBaiRongInfoReqBO.setResCode("9999");
			dataBaiRongInfoReqBO.setResMsg("百融接口调用异常");
			dataBaiRongInfoReqBO.setCreateTime(new Date());
			dataBaiRongInfoService.createDataBaiRongInfo(dataBaiRongInfoReqBO);
			resTO.setResCode("9999");
			resTO.setResMsg("百融接口调用异常");
		}
		return resTO;
	}

	@Override
	protected String createQueryXml(BaiRongReqTO req) {
		StringBuilder xml = new StringBuilder();
		xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");
		xml.append("<subatm>");
		xml.append("<application>GwBiz.Req</application>");
		xml.append("<version>1.0.0</version>");
		xml.append("<sendTime>").append(DateUtil.now14()).append("</sendTime>");
		xml.append("<transCode>101013</transCode>");
		xml.append("<channelId>").append(encryInfo.getChannelId()).append("</channelId>");
		xml.append("<channelOrderId>").append(DateUtil.now17()).append("</channelOrderId>");
		xml.append("<name>").append(Md5Utils.md5ToHexStr(req.getName())).append("</name>");
		xml.append("<cid>").append(Md5Utils.md5ToHexStr(req.getIdCard())).append("</cid>");
		xml.append("<phone>").append(Md5Utils.md5ToHexStr(req.getPhoneNum())).append("</phone>");
//		xml.append("<name>").append(req.getName()).append("</name>");
//		xml.append("<cid>").append(req.getIdCard()).append("</cid>");
//		xml.append("<phone>").append(req.getPhoneNum()).append("</phone>");
		xml.append("<contactsPhone>").append(req.getContactsPhone()).append("</contactsPhone>");
		xml.append("<yearRange>").append(req.getYearRange()).append("</yearRange>");
//		xml.append("<queryModule>ApplyLoanStr,SpecialList_c,FraudRelation_g,DebtRepayStress,ExecutionLimited,GrayListExpand</queryModule>");
		xml.append("<queryModule>").append(req.getQueryModule()).append("</queryModule>");
		xml.append("</subatm>");
		log.info("百融接口调用翰迪数据平台请求报文：{}", xml);
		req.setQueryXml(xml.toString());
		return xml.toString();
	}

	@Override
	protected BaiRongResTO parseResultAndSave(String resultXml, String orderId,	Date createDate) {
		log.info("调用百融画像评估查询接口返回报文：{}", resultXml);
		BaiRongResTO resTO = new BaiRongResTO();
		JSONObject resObject = new JSONObject();
		// 百融数据入库
		DataBaiRongInfoReqBO dataBaiRongInfoReqBO = new DataBaiRongInfoReqBO();
		dataBaiRongInfoReqBO.setOrderId(orderId);
		try {
			// 解析xml，保存本地DB
//			resultXml = "{\"resCode\":\"0000\",\"resMsg\":\"查询成功\",\"resData\":{\"GrayListExpand\":{},\"swift_number\":\"3001743_20200411223112_49334D1DA\",\"FraudRelation_g\":{},\"ApplyLoanStr\":{\"d7\":{},\"m1\":{\"id\":{\"nbank\":{\"week_allnum\":\"0\",\"cf_orgnum\":\"1\",\"cons_allnum\":\"1\",\"selfnum\":\"0\",\"orgnum\":\"1\",\"night_allnum\":\"0\",\"cf_allnum\":\"1\",\"cons_orgnum\":\"1\",\"week_orgnum\":\"0\",\"night_orgnum\":\"0\",\"allnum\":\"1\"},\"pdl\":{\"orgnum\":\"1\",\"allnum\":\"1\"}},\"cell\":{\"nbank\":{\"week_allnum\":\"0\",\"cf_orgnum\":\"1\",\"cons_allnum\":\"1\",\"selfnum\":\"0\",\"orgnum\":\"1\",\"night_allnum\":\"0\",\"cf_allnum\":\"1\",\"cons_orgnum\":\"1\",\"week_orgnum\":\"0\",\"night_orgnum\":\"0\",\"allnum\":\"1\"},\"pdl\":{\"orgnum\":\"1\",\"allnum\":\"1\"}}},\"m3\":{\"id\":{\"tot_mons\":\"1\",\"max_monnum\":\"1\",\"nbank\":{\"cons_allnum\":\"1\",\"cf_orgnum\":\"1\",\"orgnum\":\"1\",\"cf_allnum\":\"1\",\"allnum\":\"1\",\"week_allnum\":\"0\",\"tot_mons\":\"1\",\"selfnum\":\"0\",\"night_allnum\":\"0\",\"max_monnum\":\"1\",\"cons_orgnum\":\"1\",\"week_orgnum\":\"0\",\"night_orgnum\":\"0\",\"avg_monnum\":\"1.00\",\"min_monnum\":\"0\"},\"pdl\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"avg_monnum\":\"1.00\",\"min_monnum\":\"0\"},\"cell\":{\"tot_mons\":\"1\",\"max_monnum\":\"1\",\"nbank\":{\"cons_allnum\":\"1\",\"cf_orgnum\":\"1\",\"orgnum\":\"1\",\"cf_allnum\":\"1\",\"allnum\":\"1\",\"week_allnum\":\"0\",\"tot_mons\":\"1\",\"selfnum\":\"0\",\"night_allnum\":\"0\",\"max_monnum\":\"1\",\"cons_orgnum\":\"1\",\"week_orgnum\":\"0\",\"night_orgnum\":\"0\",\"avg_monnum\":\"1.00\",\"min_monnum\":\"0\"},\"pdl\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"avg_monnum\":\"1.00\",\"min_monnum\":\"0\"}},\"fst\":{\"id\":{\"bank\":{\"inteday\":\"313\"},\"nbank\":{\"inteday\":\"349\"}},\"cell\":{\"bank\":{\"inteday\":\"313\"},\"nbank\":{\"inteday\":\"349\"}}},\"d15\":{},\"m6\":{\"id\":{\"caoff\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"tot_mons\":\"2\",\"caon\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"max_monnum\":\"2\",\"min_inteday\":\"1\",\"nbank\":{\"cf_orgnum\":\"1\",\"cons_allnum\":\"1\",\"orgnum\":\"3\",\"max_inteday\":\"129\",\"cf_allnum\":\"1\",\"sloan_allnum\":\"1\",\"oth_allnum\":\"2\",\"else_allnum\":\"1\",\"allnum\":\"3\",\"week_allnum\":\"0\",\"tot_mons\":\"2\",\"selfnum\":\"0\",\"else_orgnum\":\"1\",\"night_allnum\":\"0\",\"max_monnum\":\"2\",\"min_inteday\":\"1\",\"cons_orgnum\":\"1\",\"week_orgnum\":\"0\",\"oth_orgnum\":\"2\",\"night_orgnum\":\"0\",\"sloan_orgnum\":\"1\",\"avg_monnum\":\"1.50\",\"min_monnum\":\"0\"},\"max_inteday\":\"129\",\"pdl\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"avg_monnum\":\"1.50\",\"min_monnum\":\"0\"},\"cell\":{\"caoff\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"tot_mons\":\"2\",\"caon\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"max_monnum\":\"2\",\"min_inteday\":\"1\",\"nbank\":{\"cf_orgnum\":\"1\",\"cons_allnum\":\"1\",\"orgnum\":\"3\",\"max_inteday\":\"129\",\"cf_allnum\":\"1\",\"sloan_allnum\":\"1\",\"oth_allnum\":\"2\",\"else_allnum\":\"1\",\"allnum\":\"3\",\"week_allnum\":\"0\",\"tot_mons\":\"2\",\"selfnum\":\"0\",\"else_orgnum\":\"1\",\"night_allnum\":\"0\",\"max_monnum\":\"2\",\"min_inteday\":\"1\",\"cons_orgnum\":\"1\",\"week_orgnum\":\"0\",\"oth_orgnum\":\"2\",\"night_orgnum\":\"0\",\"sloan_orgnum\":\"1\",\"avg_monnum\":\"1.50\",\"min_monnum\":\"0\"},\"max_inteday\":\"129\",\"pdl\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"avg_monnum\":\"1.50\",\"min_monnum\":\"0\"}},\"lst\":{\"id\":{\"bank\":{\"inteday\":\"212\",\"consnum\":\"1\",\"csinteday\":\"1\"},\"nbank\":{\"inteday\":\"19\",\"consnum\":\"1\",\"csinteday\":\"1\"}},\"cell\":{\"bank\":{\"inteday\":\"313\",\"consnum\":\"1\",\"csinteday\":\"1\"},\"nbank\":{\"inteday\":\"19\",\"consnum\":\"1\",\"csinteday\":\"1\"}}},\"m12\":{\"id\":{\"oth\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"af\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"max_inteday\":\"129\",\"caoff\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"tot_mons\":\"5\",\"bank\":{\"orgnum\":\"2\",\"max_inteday\":\"101\",\"tra_allnum\":\"1\",\"ret_orgnum\":\"1\",\"allnum\":\"2\",\"week_allnum\":\"0\",\"tot_mons\":\"2\",\"selfnum\":\"0\",\"night_allnum\":\"0\",\"ret_allnum\":\"1\",\"max_monnum\":\"1\",\"min_inteday\":\"101\",\"week_orgnum\":\"0\",\"night_orgnum\":\"0\",\"tra_orgnum\":\"1\",\"avg_monnum\":\"1.00\",\"min_monnum\":\"0\"},\"caon\":{\"orgnum\":\"3\",\"allnum\":\"3\"},\"max_monnum\":\"2\",\"min_inteday\":\"1\",\"nbank\":{\"cf_orgnum\":\"2\",\"orgnum\":\"5\",\"sloan_allnum\":\"1\",\"oth_allnum\":\"2\",\"selfnum\":\"0\",\"night_allnum\":\"0\",\"cons_orgnum\":\"2\",\"finlea_allnum\":\"1\",\"oth_orgnum\":\"2\",\"sloan_orgnum\":\"1\",\"min_monnum\":\"0\",\"cons_allnum\":\"2\",\"ca_allnum\":\"1\",\"max_inteday\":\"167\",\"cf_allnum\":\"2\",\"else_allnum\":\"1\",\"allnum\":\"5\",\"finlea_orgnum\":\"1\",\"week_allnum\":\"1\",\"tot_mons\":\"4\",\"else_orgnum\":\"1\",\"max_monnum\":\"2\",\"min_inteday\":\"1\",\"week_orgnum\":\"1\",\"ca_orgnum\":\"1\",\"night_orgnum\":\"0\",\"avg_monnum\":\"1.25\"},\"rel\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"pdl\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"avg_monnum\":\"1.40\",\"min_monnum\":\"0\"},\"cell\":{\"af\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"max_inteday\":\"164\",\"caoff\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"tot_mons\":\"4\",\"bank\":{\"orgnum\":\"1\",\"ret_orgnum\":\"1\",\"allnum\":\"1\",\"week_allnum\":\"0\",\"tot_mons\":\"1\",\"selfnum\":\"0\",\"night_allnum\":\"0\",\"ret_allnum\":\"1\",\"max_monnum\":\"1\",\"week_orgnum\":\"0\",\"night_orgnum\":\"0\",\"avg_monnum\":\"1.00\",\"min_monnum\":\"0\"},\"caon\":{\"orgnum\":\"2\",\"allnum\":\"2\"},\"max_monnum\":\"2\",\"min_inteday\":\"1\",\"nbank\":{\"cf_orgnum\":\"2\",\"orgnum\":\"5\",\"sloan_allnum\":\"1\",\"oth_allnum\":\"2\",\"selfnum\":\"0\",\"night_allnum\":\"0\",\"cons_orgnum\":\"2\",\"finlea_allnum\":\"1\",\"oth_orgnum\":\"2\",\"sloan_orgnum\":\"1\",\"min_monnum\":\"0\",\"cons_allnum\":\"2\",\"ca_allnum\":\"1\",\"max_inteday\":\"167\",\"cf_allnum\":\"2\",\"else_allnum\":\"1\",\"allnum\":\"5\",\"finlea_orgnum\":\"1\",\"week_allnum\":\"1\",\"tot_mons\":\"4\",\"else_orgnum\":\"1\",\"max_monnum\":\"2\",\"min_inteday\":\"1\",\"week_orgnum\":\"1\",\"ca_orgnum\":\"1\",\"night_orgnum\":\"0\",\"avg_monnum\":\"1.25\"},\"rel\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"pdl\":{\"orgnum\":\"1\",\"allnum\":\"1\"},\"avg_monnum\":\"1.50\",\"min_monnum\":\"0\"}}},\"SpecialList_c\":{},\"Flag\":{\"fraudrelation_g\":\"0\",\"applyloanstr\":\"1\",\"executionlimited\":\"0\",\"specialList_c\":\"0\",\"graylistexpand\":\"0\",\"debtrepaystress\":\"1\"},\"ExecutionLimited\":{},\"DebtRepayStress\":{\"nodebtscore\":\"22\"}}}";
			JSONObject jasonObject = JSONObject.parseObject(resultXml);
			if (null != jasonObject) {
				if ("0000".equals(jasonObject.get("resCode"))) {
//				if (true) {
//					String aaString = "{\"swift_number\":\"999333_20181029143459_23453A4E0\",\"code\":\"00\",\"Flag\":{\"debtrepaystress\":\"1\",\"specialList_c\":\"1\",\"fraudrelation_g\":\"1\",\"executionlimited\":\"1\"},\"DebtRepayStress\":{\"nodebtscore\":\"85\"},\"SpecialList_c\":{\"id\":{\"court_bad\":\"0\",\"court_executed\":\"0\",\"bank_bad\":\"0\",\"bank_overdue\":\"0\",\"bank_fraud\":\"0\",\"bank_lost\":\"0\",\"bank_refuse\":\"0\",\"nbank_bad\":\"0\",\"nbank_overdue\":\"0\",\"nbank_fraud\":\"0\",\"nbank_lost\":\"0\",\"nbank_refuse\":\"0\",\"nbank_nsloan_bad\":\"0\",\"nbank_nsloan_overdue\":\"0\",\"nbank_nsloan_fraud\":\"0\",\"nbank_nsloan_lost\":\"0\",\"nbank_nsloan_refuse\":\"0\",\"nbank_sloan_bad\":\"0\",\"nbank_sloan_overdue\":\"0\",\"nbank_sloan_fraud\":\"0\",\"nbank_sloan_lost\":\"0\",\"nbank_sloan_refuse\":\"0\",\"nbank_cons_bad\":\"0\",\"nbank_cons_overdue\":\"0\",\"nbank_cons_fraud\":\"0\",\"nbank_cons_lost\":\"0\",\"nbank_cons_refuse\":\"0\",\"nbank_finlea_bad\":\"0\",\"nbank_finlea_overdue\":\"0\",\"nbank_finlea_fraud\":\"0\",\"nbank_finlea_lost\":\"0\",\"nbank_finlea_refuse\":\"0\",\"nbank_autofin_bad\":\"0\",\"nbank_autofin_overdue\":\"0\",\"nbank_autofin_fraud\":\"0\",\"nbank_autofin_lost\":\"0\",\"nbank_autofin_refuse\":\"0\",\"nbank_other_bad\":\"0\",\"nbank_other_overdue\":\"0\",\"nbank_other_fraud\":\"0\",\"nbank_other_lost\":\"0\",\"nbank_other_refuse\":\"0\",\"court_bad_time\":\"0\",\"court_executed_time\":\"0\",\"bank_bad_time\":\"0\",\"bank_overdue_time\":\"0\",\"bank_fraud_time\":\"0\",\"bank_lost_time\":\"0\",\"bank_refuse_time\":\"0\",\"nbank_bad_time\":\"0\",\"nbank_overdue_time\":\"0\",\"nbank_fraud_time\":\"0\",\"nbank_lost_time\":\"0\",\"nbank_refuse_time\":\"0\",\"nbank_nsloan_bad_time\":\"0\",\"nbank_nsloan_overdue_time\":\"0\",\"nbank_nsloan_fraud_time\":\"0\",\"nbank_nsloan_lost_time\":\"0\",\"nbank_nsloan_refuse_time\":\"0\",\"nbank_sloan_bad_time\":\"0\",\"nbank_sloan_overdue_time\":\"0\",\"nbank_sloan_fraud_time\":\"0\",\"nbank_sloan_lost_time\":\"0\",\"nbank_sloan_refuse_time\":\"0\",\"nbank_cons_bad_time\":\"0\",\"nbank_cons_overdue_time\":\"0\",\"nbank_cons_fraud_time\":\"0\",\"nbank_cons_lost_time\":\"0\",\"nbank_cons_refuse_time\":\"0\",\"nbank_finlea_bad_time\":\"0\",\"nbank_finlea_overdue_time\":\"0\",\"nbank_finlea_fraud_time\":\"0\",\"nbank_finlea_lost_time\":\"0\",\"nbank_finlea_refuse_time\":\"0\",\"nbank_autofin_bad_time\":\"0\",\"nbank_autofin_overdue_time\":\"0\",\"nbank_autofin_fraud_time\":\"0\",\"nbank_autofin_lost_time\":\"0\",\"nbank_autofin_refuse_time\":\"0\",\"nbank_other_bad_time\":\"0\",\"nbank_other_overdue_time\":\"0\",\"nbank_other_fraud_time\":\"0\",\"nbank_other_lost_time\":\"0\",\"nbank_other_refuse_time\":\"0\",\"court_bad_allnum\":\"3\",\"court_executed_allnum\":\"4\",\"bank_bad_allnum\":\"2\",\"bank_overdue_allnum\":\"0\",\"bank_fraud_allnum\":\"0\",\"bank_lost_allnum\":\"0\",\"bank_refuse_allnum\":\"0\",\"nbank_bad_allnum\":\"5\",\"nbank_overdue_allnum\":\"0\",\"nbank_fraud_allnum\":\"0\",\"nbank_lost_allnum\":\"0\",\"nbank_refuse_allnum\":\"0\",\"nbank_nsloan_bad_allnum\":\"7\",\"nbank_nsloan_overdue_allnum\":\"0\",\"nbank_nsloan_fraud_allnum\":\"0\",\"nbank_nsloan_lost_allnum\":\"0\",\"nbank_nsloan_refuse_allnum\":\"0\",\"nbank_sloan_bad_allnum\":\"9\",\"nbank_sloan_overdue_allnum\":\"0\",\"nbank_sloan_fraud_allnum\":\"0\",\"nbank_sloan_lost_allnum\":\"0\",\"nbank_sloan_refuse_allnum\":\"0\",\"nbank_cons_bad_allnum\":\"11\",\"nbank_cons_overdue_allnum\":\"0\",\"nbank_cons_fraud_allnum\":\"0\",\"nbank_cons_lost_allnum\":\"0\",\"nbank_cons_refuse_allnum\":\"0\",\"nbank_finlea_bad_allnum\":\"13\",\"nbank_finlea_overdue_allnum\":\"0\",\"nbank_finlea_fraud_allnum\":\"0\",\"nbank_finlea_lost_allnum\":\"0\",\"nbank_finlea_refuse_allnum\":\"0\",\"nbank_autofin_bad_allnum\":\"15\",\"nbank_autofin_overdue_allnum\":\"0\",\"nbank_autofin_fraud_allnum\":\"0\",\"nbank_autofin_lost_allnum\":\"0\",\"nbank_autofin_refuse_allnum\":\"0\",\"nbank_other_bad_allnum\":\"17\",\"nbank_other_overdue_allnum\":\"0\",\"nbank_other_fraud_allnum\":\"0\",\"nbank_other_lost_allnum\":\"0\",\"nbank_other_refuse_allnum\":\"3\"},\"cell\":{\"bank_bad\":\"0\",\"bank_overdue\":\"0\",\"bank_fraud\":\"0\",\"bank_lost\":\"0\",\"bank_refuse\":\"0\",\"nbank_bad\":\"0\",\"nbank_overdue\":\"0\",\"nbank_fraud\":\"0\",\"nbank_lost\":\"0\",\"nbank_refuse\":\"0\",\"nbank_nsloan_bad\":\"0\",\"nbank_nsloan_overdue\":\"0\",\"nbank_nsloan_fraud\":\"0\",\"nbank_nsloan_lost\":\"0\",\"nbank_nsloan_refuse\":\"0\",\"nbank_sloan_bad\":\"0\",\"nbank_sloan_overdue\":\"0\",\"nbank_sloan_fraud\":\"0\",\"nbank_sloan_lost\":\"0\",\"nbank_sloan_refuse\":\"0\",\"nbank_cons_bad\":\"0\",\"nbank_cons_overdue\":\"0\",\"nbank_cons_fraud\":\"0\",\"nbank_cons_lost\":\"0\",\"nbank_cons_refuse\":\"0\",\"nbank_finlea_bad\":\"0\",\"nbank_finlea_overdue\":\"0\",\"nbank_finlea_fraud\":\"0\",\"nbank_finlea_lost\":\"0\",\"nbank_finlea_refuse\":\"0\",\"nbank_autofin_bad\":\"0\",\"nbank_autofin_overdue\":\"0\",\"nbank_autofin_fraud\":\"0\",\"nbank_autofin_lost\":\"0\",\"nbank_autofin_refuse\":\"0\",\"nbank_other_bad\":\"0\",\"nbank_other_overdue\":\"0\",\"nbank_other_fraud\":\"0\",\"nbank_other_lost\":\"0\",\"nbank_other_refuse\":\"0\",\"bank_bad_time\":\"0\",\"bank_overdue_time\":\"0\",\"bank_fraud_time\":\"0\",\"bank_lost_time\":\"0\",\"bank_refuse_time\":\"0\",\"nbank_bad_time\":\"0\",\"nbank_overdue_time\":\"0\",\"nbank_fraud_time\":\"0\",\"nbank_lost_time\":\"0\",\"nbank_refuse_time\":\"0\",\"nbank_nsloan_bad_time\":\"0\",\"nbank_nsloan_overdue_time\":\"0\",\"nbank_nsloan_fraud_time\":\"0\",\"nbank_nsloan_lost_time\":\"0\",\"nbank_nsloan_refuse_time\":\"0\",\"nbank_sloan_bad_time\":\"0\",\"nbank_sloan_overdue_time\":\"0\",\"nbank_sloan_fraud_time\":\"0\",\"nbank_sloan_lost_time\":\"0\",\"nbank_sloan_refuse_time\":\"0\",\"nbank_cons_bad_time\":\"0\",\"nbank_cons_overdue_time\":\"0\",\"nbank_cons_fraud_time\":\"0\",\"nbank_cons_lost_time\":\"0\",\"nbank_cons_refuse_time\":\"0\",\"nbank_finlea_bad_time\":\"0\",\"nbank_finlea_overdue_time\":\"0\",\"nbank_finlea_fraud_time\":\"0\",\"nbank_finlea_lost_time\":\"0\",\"nbank_finlea_refuse_time\":\"0\",\"nbank_autofin_bad_time\":\"0\",\"nbank_autofin_overdue_time\":\"0\",\"nbank_autofin_fraud_time\":\"0\",\"nbank_autofin_lost_time\":\"0\",\"nbank_autofin_refuse_time\":\"0\",\"nbank_other_bad_time\":\"0\",\"nbank_other_overdue_time\":\"0\",\"nbank_other_fraud_time\":\"0\",\"nbank_other_lost_time\":\"0\",\"nbank_other_refuse_time\":\"0\",\"bank_bad_allnum\":\"4\",\"bank_overdue_allnum\":\"0\",\"bank_fraud_allnum\":\"0\",\"bank_lost_allnum\":\"0\",\"bank_refuse_allnum\":\"0\",\"nbank_bad_allnum\":\"6\",\"nbank_overdue_allnum\":\"0\",\"nbank_fraud_allnum\":\"0\",\"nbank_lost_allnum\":\"0\",\"nbank_refuse_allnum\":\"0\",\"nbank_nsloan_bad_allnum\":\"8\",\"nbank_nsloan_overdue_allnum\":\"0\",\"nbank_nsloan_fraud_allnum\":\"0\",\"nbank_nsloan_lost_allnum\":\"0\",\"nbank_nsloan_refuse_allnum\":\"0\",\"nbank_sloan_bad_allnum\":\"10\",\"nbank_sloan_overdue_allnum\":\"0\",\"nbank_sloan_fraud_allnum\":\"0\",\"nbank_sloan_lost_allnum\":\"0\",\"nbank_sloan_refuse_allnum\":\"0\",\"nbank_cons_bad_allnum\":\"12\",\"nbank_cons_overdue_allnum\":\"0\",\"nbank_cons_fraud_allnum\":\"0\",\"nbank_cons_lost_allnum\":\"0\",\"nbank_cons_refuse_allnum\":\"0\",\"nbank_finlea_bad_allnum\":\"14\",\"nbank_finlea_overdue_allnum\":\"0\",\"nbank_finlea_fraud_allnum\":\"0\",\"nbank_finlea_lost_allnum\":\"0\",\"nbank_finlea_refuse_allnum\":\"0\",\"nbank_autofin_bad_allnum\":\"16\",\"nbank_autofin_overdue_allnum\":\"0\",\"nbank_autofin_fraud_allnum\":\"0\",\"nbank_autofin_lost_allnum\":\"0\",\"nbank_autofin_refuse_allnum\":\"0\",\"nbank_other_bad_allnum\":\"18\",\"nbank_other_overdue_allnum\":\"0\",\"nbank_other_fraud_allnum\":\"0\",\"nbank_other_lost_allnum\":\"0\",\"nbank_other_refuse_allnum\":\"3\"},\"lm_cell\":{\"bank_bad\":\"0\",\"bank_overdue\":\"0\",\"bank_fraud\":\"0\",\"bank_lost\":\"0\",\"bank_refuse\":\"0\",\"nbank_bad\":\"0\",\"nbank_overdue\":\"0\",\"nbank_fraud\":\"0\",\"nbank_lost\":\"0\",\"nbank_refuse\":\"0\",\"nbank_nsloan_bad\":\"0\",\"nbank_nsloan_overdue\":\"0\",\"nbank_nsloan_fraud\":\"0\",\"nbank_nsloan_lost\":\"0\",\"nbank_nsloan_refuse\":\"0\",\"nbank_sloan_bad\":\"0\",\"nbank_sloan_overdue\":\"0\",\"nbank_sloan_fraud\":\"0\",\"nbank_sloan_lost\":\"0\",\"nbank_sloan_refuse\":\"0\",\"nbank_cons_bad\":\"0\",\"nbank_cons_overdue\":\"0\",\"nbank_cons_fraud\":\"0\",\"nbank_cons_lost\":\"0\",\"nbank_cons_refuse\":\"0\",\"nbank_finlea_bad\":\"0\",\"nbank_finlea_overdue\":\"0\",\"nbank_finlea_fraud\":\"0\",\"nbank_finlea_lost\":\"0\",\"nbank_finlea_refuse\":\"0\",\"nbank_autofin_bad\":\"0\",\"nbank_autofin_overdue\":\"0\",\"nbank_autofin_fraud\":\"0\",\"nbank_autofin_lost\":\"0\",\"nbank_autofin_refuse\":\"0\",\"nbank_other_bad\":\"0\",\"nbank_other_overdue\":\"0\",\"nbank_other_fraud\":\"0\",\"nbank_other_lost\":\"0\",\"nbank_other_refuse\":\"0\",\"bank_bad_time\":\"0\",\"bank_overdue_time\":\"0\",\"bank_fraud_time\":\"0\",\"bank_lost_time\":\"0\",\"bank_refuse_time\":\"0\",\"nbank_bad_time\":\"0\",\"nbank_overdue_time\":\"0\",\"nbank_fraud_time\":\"0\",\"nbank_lost_time\":\"0\",\"nbank_refuse_time\":\"0\",\"nbank_nsloan_bad_time\":\"0\",\"nbank_nsloan_overdue_time\":\"0\",\"nbank_nsloan_fraud_time\":\"0\",\"nbank_nsloan_lost_time\":\"0\",\"nbank_nsloan_refuse_time\":\"0\",\"nbank_sloan_bad_time\":\"0\",\"nbank_sloan_overdue_time\":\"0\",\"nbank_sloan_fraud_time\":\"0\",\"nbank_sloan_lost_time\":\"0\",\"nbank_sloan_refuse_time\":\"0\",\"nbank_cons_bad_time\":\"0\",\"nbank_cons_overdue_time\":\"0\",\"nbank_cons_fraud_time\":\"0\",\"nbank_cons_lost_time\":\"0\",\"nbank_cons_refuse_time\":\"0\",\"nbank_finlea_bad_time\":\"0\",\"nbank_finlea_overdue_time\":\"0\",\"nbank_finlea_fraud_time\":\"0\",\"nbank_finlea_lost_time\":\"0\",\"nbank_finlea_refuse_time\":\"0\",\"nbank_autofin_bad_time\":\"0\",\"nbank_autofin_overdue_time\":\"0\",\"nbank_autofin_fraud_time\":\"0\",\"nbank_autofin_lost_time\":\"0\",\"nbank_autofin_refuse_time\":\"0\",\"nbank_other_bad_time\":\"0\",\"nbank_other_overdue_time\":\"0\",\"nbank_other_fraud_time\":\"0\",\"nbank_other_lost_time\":\"0\",\"nbank_other_refuse_time\":\"0\",\"bank_bad_allnum\":\"0\",\"bank_overdue_allnum\":\"0\",\"bank_fraud_allnum\":\"0\",\"bank_lost_allnum\":\"0\",\"bank_refuse_allnum\":\"0\",\"nbank_bad_allnum\":\"0\",\"nbank_overdue_allnum\":\"0\",\"nbank_fraud_allnum\":\"0\",\"nbank_lost_allnum\":\"0\",\"nbank_refuse_allnum\":\"0\",\"nbank_nsloan_bad_allnum\":\"0\",\"nbank_nsloan_overdue_allnum\":\"0\",\"nbank_nsloan_fraud_allnum\":\"0\",\"nbank_nsloan_lost_allnum\":\"0\",\"nbank_nsloan_refuse_allnum\":\"0\",\"nbank_sloan_bad_allnum\":\"0\",\"nbank_sloan_overdue_allnum\":\"0\",\"nbank_sloan_fraud_allnum\":\"0\",\"nbank_sloan_lost_allnum\":\"0\",\"nbank_sloan_refuse_allnum\":\"0\",\"nbank_cons_bad_allnum\":\"0\",\"nbank_cons_overdue_allnum\":\"0\",\"nbank_cons_fraud_allnum\":\"0\",\"nbank_cons_lost_allnum\":\"0\",\"nbank_cons_refuse_allnum\":\"0\",\"nbank_finlea_bad_allnum\":\"0\",\"nbank_finlea_overdue_allnum\":\"0\",\"nbank_finlea_fraud_allnum\":\"0\",\"nbank_finlea_lost_allnum\":\"0\",\"nbank_finlea_refuse_allnum\":\"0\",\"nbank_autofin_bad_allnum\":\"0\",\"nbank_autofin_overdue_allnum\":\"0\",\"nbank_autofin_fraud_allnum\":\"0\",\"nbank_autofin_lost_allnum\":\"0\",\"nbank_autofin_refuse_allnum\":\"0\",\"nbank_other_bad_allnum\":\"0\",\"nbank_other_overdue_allnum\":\"0\",\"nbank_other_fraud_allnum\":\"0\",\"nbank_other_lost_allnum\":\"0\",\"nbank_other_refuse_allnum\":\"3\"}},\"FraudRelation_g\":{\"list_level\":\"11\",\"group_num\":\"a\"},\"ExecutionLimited\":{\"xg1\":{\"casecode\":\"  (2018)内0105执2656号\",\"iname\":\"荣珍\",\"sexname\":\"女性\",\"age\":\"38\",\"courtname\":\"呼和浩特市赛罕区人民法院\",\"areaname\":\"内蒙古\",\"publishdate\":\"2018-06-01\",\"regdate\":\"2018-06-01\",\"datatype\":\"限高被执行人\"},\"xg2\":{\"casecode\":\"  (2018)内0105执2656号\",\"iname\":\"荣珍\",\"sexname\":\"女性\",\"age\":\"38\",\"courtname\":\"呼和浩特市赛罕区人民法院\",\"areaname\":\"内蒙古\",\"publishdate\":\"2018-06-01\",\"regdate\":\"2018-06-01\",\"datatype\":\"限高被执行人\"}}}";
//					String aaString = "{\"swift_number\":\"999333_20181029143459_23453A4E0\",\"code\":\"00\",\"Flag\":{\"debtrepaystress\":\"1\",\"specialList_c\":\"1\",\"fraudrelation_g\":\"1\",\"executionlimited\":\"0\"},\"DebtRepayStress\":{\"nodebtscore\":\"74\"},\"SpecialList_c\":{\"id\":{\"court_bad\":\"1\",\"court_executed\":\"1\",\"bank_bad\":\"1\",\"bank_overdue\":\"1\",\"bank_fraud\":\"1\",\"bank_lost\":\"1\",\"bank_refuse\":\"1\",\"nbank_bad\":\"1\",\"nbank_overdue\":\"1\",\"nbank_fraud\":\"1\",\"nbank_lost\":\"1\",\"nbank_refuse\":\"1\",\"nbank_nsloan_bad\":\"1\",\"nbank_nsloan_overdue\":\"1\",\"nbank_nsloan_fraud\":\"1\",\"nbank_nsloan_lost\":\"1\",\"nbank_nsloan_refuse\":\"1\",\"nbank_sloan_bad\":\"1\",\"nbank_sloan_overdue\":\"1\",\"nbank_sloan_fraud\":\"1\",\"nbank_sloan_lost\":\"1\",\"nbank_sloan_refuse\":\"1\",\"nbank_cons_bad\":\"1\",\"nbank_cons_overdue\":\"1\",\"nbank_cons_fraud\":\"1\",\"nbank_cons_lost\":\"1\",\"nbank_cons_refuse\":\"1\",\"nbank_finlea_bad\":\"1\",\"nbank_finlea_overdue\":\"1\",\"nbank_finlea_fraud\":\"1\",\"nbank_finlea_lost\":\"1\",\"nbank_finlea_refuse\":\"1\",\"nbank_autofin_bad\":\"1\",\"nbank_autofin_overdue\":\"1\",\"nbank_autofin_fraud\":\"1\",\"nbank_autofin_lost\":\"1\",\"nbank_autofin_refuse\":\"1\",\"nbank_other_bad\":\"1\",\"nbank_other_overdue\":\"1\",\"nbank_other_fraud\":\"1\",\"nbank_other_lost\":\"1\",\"nbank_other_refuse\":\"1\",\"court_bad_time\":\"1\",\"court_executed_time\":\"1\",\"bank_bad_time\":\"1\",\"bank_overdue_time\":\"1\",\"bank_fraud_time\":\"1\",\"bank_lost_time\":\"1\",\"bank_refuse_time\":\"1\",\"nbank_bad_time\":\"1\",\"nbank_overdue_time\":\"1\",\"nbank_fraud_time\":\"1\",\"nbank_lost_time\":\"1\",\"nbank_refuse_time\":\"1\",\"nbank_nsloan_bad_time\":\"1\",\"nbank_nsloan_overdue_time\":\"1\",\"nbank_nsloan_fraud_time\":\"1\",\"nbank_nsloan_lost_time\":\"1\",\"nbank_nsloan_refuse_time\":\"1\",\"nbank_sloan_bad_time\":\"1\",\"nbank_sloan_overdue_time\":\"1\",\"nbank_sloan_fraud_time\":\"1\",\"nbank_sloan_lost_time\":\"1\",\"nbank_sloan_refuse_time\":\"1\",\"nbank_cons_bad_time\":\"1\",\"nbank_cons_overdue_time\":\"1\",\"nbank_cons_fraud_time\":\"1\",\"nbank_cons_lost_time\":\"1\",\"nbank_cons_refuse_time\":\"1\",\"nbank_finlea_bad_time\":\"1\",\"nbank_finlea_overdue_time\":\"1\",\"nbank_finlea_fraud_time\":\"1\",\"nbank_finlea_lost_time\":\"1\",\"nbank_finlea_refuse_time\":\"1\",\"nbank_autofin_bad_time\":\"1\",\"nbank_autofin_overdue_time\":\"1\",\"nbank_autofin_fraud_time\":\"1\",\"nbank_autofin_lost_time\":\"1\",\"nbank_autofin_refuse_time\":\"1\",\"nbank_other_bad_time\":\"1\",\"nbank_other_overdue_time\":\"1\",\"nbank_other_fraud_time\":\"1\",\"nbank_other_lost_time\":\"1\",\"nbank_other_refuse_time\":\"1\"},\"cell\":{\"bank_bad\":\"1\",\"bank_overdue\":\"1\",\"bank_fraud\":\"1\",\"bank_lost\":\"1\",\"bank_refuse\":\"1\",\"nbank_bad\":\"1\",\"nbank_overdue\":\"1\",\"nbank_fraud\":\"1\",\"nbank_lost\":\"1\",\"nbank_refuse\":\"1\",\"nbank_nsloan_bad\":\"1\",\"nbank_nsloan_overdue\":\"1\",\"nbank_nsloan_fraud\":\"1\",\"nbank_nsloan_lost\":\"1\",\"nbank_nsloan_refuse\":\"1\",\"nbank_sloan_bad\":\"1\",\"nbank_sloan_overdue\":\"1\",\"nbank_sloan_fraud\":\"1\",\"nbank_sloan_lost\":\"1\",\"nbank_sloan_refuse\":\"1\",\"nbank_cons_bad\":\"1\",\"nbank_cons_overdue\":\"1\",\"nbank_cons_fraud\":\"1\",\"nbank_cons_lost\":\"1\",\"nbank_cons_refuse\":\"1\",\"nbank_finlea_bad\":\"1\",\"nbank_finlea_overdue\":\"1\",\"nbank_finlea_fraud\":\"1\",\"nbank_finlea_lost\":\"1\",\"nbank_finlea_refuse\":\"1\",\"nbank_autofin_bad\":\"1\",\"nbank_autofin_overdue\":\"1\",\"nbank_autofin_fraud\":\"1\",\"nbank_autofin_lost\":\"1\",\"nbank_autofin_refuse\":\"1\",\"nbank_other_bad\":\"1\",\"nbank_other_overdue\":\"1\",\"nbank_other_fraud\":\"1\",\"nbank_other_lost\":\"1\",\"nbank_other_refuse\":\"1\",\"bank_bad_time\":\"1\",\"bank_overdue_time\":\"1\",\"bank_fraud_time\":\"1\",\"bank_lost_time\":\"1\",\"bank_refuse_time\":\"1\",\"nbank_bad_time\":\"1\",\"nbank_overdue_time\":\"1\",\"nbank_fraud_time\":\"1\",\"nbank_lost_time\":\"1\",\"nbank_refuse_time\":\"1\",\"nbank_nsloan_bad_time\":\"1\",\"nbank_nsloan_overdue_time\":\"1\",\"nbank_nsloan_fraud_time\":\"1\",\"nbank_nsloan_lost_time\":\"1\",\"nbank_nsloan_refuse_time\":\"1\",\"nbank_sloan_bad_time\":\"1\",\"nbank_sloan_overdue_time\":\"1\",\"nbank_sloan_fraud_time\":\"1\",\"nbank_sloan_lost_time\":\"1\",\"nbank_sloan_refuse_time\":\"1\",\"nbank_cons_bad_time\":\"1\",\"nbank_cons_overdue_time\":\"1\",\"nbank_cons_fraud_time\":\"1\",\"nbank_cons_lost_time\":\"1\",\"nbank_cons_refuse_time\":\"1\",\"nbank_finlea_bad_time\":\"1\",\"nbank_finlea_overdue_time\":\"1\",\"nbank_finlea_fraud_time\":\"1\",\"nbank_finlea_lost_time\":\"1\",\"nbank_finlea_refuse_time\":\"1\",\"nbank_autofin_bad_time\":\"1\",\"nbank_autofin_overdue_time\":\"1\",\"nbank_autofin_fraud_time\":\"1\",\"nbank_autofin_lost_time\":\"1\",\"nbank_autofin_refuse_time\":\"1\",\"nbank_other_bad_time\":\"1\",\"nbank_other_overdue_time\":\"1\",\"nbank_other_fraud_time\":\"1\",\"nbank_other_lost_time\":\"1\",\"nbank_other_refuse_time\":\"1\"},\"lm_cell\":{\"bank_bad\":\"1\",\"bank_overdue\":\"1\",\"bank_fraud\":\"1\",\"bank_lost\":\"1\",\"bank_refuse\":\"1\",\"nbank_bad\":\"1\",\"nbank_overdue\":\"1\",\"nbank_fraud\":\"1\",\"nbank_lost\":\"1\",\"nbank_refuse\":\"1\",\"nbank_nsloan_bad\":\"1\",\"nbank_nsloan_overdue\":\"1\",\"nbank_nsloan_fraud\":\"1\",\"nbank_nsloan_lost\":\"1\",\"nbank_nsloan_refuse\":\"1\",\"nbank_sloan_bad\":\"1\",\"nbank_sloan_overdue\":\"1\",\"nbank_sloan_fraud\":\"1\",\"nbank_sloan_lost\":\"1\",\"nbank_sloan_refuse\":\"1\",\"nbank_cons_bad\":\"1\",\"nbank_cons_overdue\":\"1\",\"nbank_cons_fraud\":\"1\",\"nbank_cons_lost\":\"1\",\"nbank_cons_refuse\":\"1\",\"nbank_finlea_bad\":\"1\",\"nbank_finlea_overdue\":\"1\",\"nbank_finlea_fraud\":\"1\",\"nbank_finlea_lost\":\"1\",\"nbank_finlea_refuse\":\"1\",\"nbank_autofin_bad\":\"1\",\"nbank_autofin_overdue\":\"1\",\"nbank_autofin_fraud\":\"1\",\"nbank_autofin_lost\":\"1\",\"nbank_autofin_refuse\":\"1\",\"nbank_other_bad\":\"1\",\"nbank_other_overdue\":\"1\",\"nbank_other_fraud\":\"1\",\"nbank_other_lost\":\"1\",\"nbank_other_refuse\":\"1\",\"bank_bad_time\":\"1\",\"bank_overdue_time\":\"1\",\"bank_fraud_time\":\"1\",\"bank_lost_time\":\"1\",\"bank_refuse_time\":\"1\",\"nbank_bad_time\":\"1\",\"nbank_overdue_time\":\"1\",\"nbank_fraud_time\":\"1\",\"nbank_lost_time\":\"1\",\"nbank_refuse_time\":\"1\",\"nbank_nsloan_bad_time\":\"1\",\"nbank_nsloan_overdue_time\":\"1\",\"nbank_nsloan_fraud_time\":\"1\",\"nbank_nsloan_lost_time\":\"1\",\"nbank_nsloan_refuse_time\":\"1\",\"nbank_sloan_bad_time\":\"1\",\"nbank_sloan_overdue_time\":\"1\",\"nbank_sloan_fraud_time\":\"1\",\"nbank_sloan_lost_time\":\"1\",\"nbank_sloan_refuse_time\":\"1\",\"nbank_cons_bad_time\":\"1\",\"nbank_cons_overdue_time\":\"1\",\"nbank_cons_fraud_time\":\"1\",\"nbank_cons_lost_time\":\"1\",\"nbank_cons_refuse_time\":\"1\",\"nbank_finlea_bad_time\":\"1\",\"nbank_finlea_overdue_time\":\"1\",\"nbank_finlea_fraud_time\":\"1\",\"nbank_finlea_lost_time\":\"1\",\"nbank_finlea_refuse_time\":\"1\",\"nbank_autofin_bad_time\":\"1\",\"nbank_autofin_overdue_time\":\"1\",\"nbank_autofin_fraud_time\":\"1\",\"nbank_autofin_lost_time\":\"1\",\"nbank_autofin_refuse_time\":\"1\",\"nbank_other_bad_time\":\"1\",\"nbank_other_overdue_time\":\"1\",\"nbank_other_fraud_time\":\"1\",\"nbank_other_lost_time\":\"1\",\"nbank_other_refuse_time\":\"1\"}},\"FraudRelation_g\":{\"list_level\":\"3\",\"group_num\":\"a\"}}";
//					JSONObject resData = JSONObject.parseObject(aaString);
					JSONObject resData = (JSONObject) jasonObject.get("resData");
					JSONObject flagJsonObject = (JSONObject) resData.get("Flag");
					// 百融入库参数
					dataBaiRongInfoReqBO.setResCode(jasonObject.getString("resCode"));
					dataBaiRongInfoReqBO.setResMsg(jasonObject.getString("resMsg"));
					dataBaiRongInfoReqBO.setFlag(resData.getString("Flag"));
					dataBaiRongInfoReqBO.setApplyLoanStr(resData.getString("ApplyLoanStr"));
					dataBaiRongInfoReqBO.setSpecialListC(resData.getString("SpecialList_c"));
					dataBaiRongInfoReqBO.setFraudRelationG(resData.getString("FraudRelation_g"));
					dataBaiRongInfoReqBO.setDebtRepayStress(resData.getString("DebtRepayStress"));
					dataBaiRongInfoReqBO.setExecutionLimited(resData.getString("ExecutionLimited"));
					dataBaiRongInfoReqBO.setGrayListExpand(resData.getString("GrayListExpand"));
					dataBaiRongInfoReqBO.setCreditModelEvaC(resData.getString("CreditModelEva_c"));
					
					// 偿债压力指数
					if (StringUtils.isNotBlank(flagJsonObject.getString("debtrepaystress")) && 
							flagJsonObject.getInteger("debtrepaystress") == 1) {
						JSONObject debtRepayStress = (JSONObject) resData.get("DebtRepayStress");
						if (StringUtils.isNotEmpty(debtRepayStress.getString("nodebtscore"))) {
							double brDebtscore = Double.parseDouble(debtRepayStress.getString("nodebtscore"));//百融-偿债压力指数
							resObject.put("br_debtscore", brDebtscore);
							resTO.setBrDebtscore(brDebtscore);
						} else {
							resObject.put("br_debtscore", "9999");
						}
					} else {
						resObject.put("br_debtscore", "9999");
					}
					// 团伙欺诈排查（通用版）
					if (StringUtils.isNotBlank(flagJsonObject.getString("fraudrelation_g")) &&
							flagJsonObject.getInteger("fraudrelation_g") == 1) {
						JSONObject fraudRelationG = (JSONObject) resData.get("FraudRelation_g");
						if (StringUtils.isNotEmpty(fraudRelationG.getString("list_level"))) {
							double brFrgLevel =  Double.parseDouble(fraudRelationG.getString("list_level"));//查询人欺诈团伙等级
							resObject.put("br_frg_level", brFrgLevel);
							resTO.setBrFrgLevel(brFrgLevel);
						} else {
							resObject.put("br_frg_level", "9999");
						}
					} else {
						resObject.put("br_frg_level", "9999");
					}
					// 特殊名单验证
					if (StringUtils.isNotBlank(flagJsonObject.getString("specialList_c")) &&
							flagJsonObject.getInteger("specialList_c") == 1) {
						JSONObject specialListC = (JSONObject) resData.get("SpecialList_c");
						if (specialListC.get("id") != null) {
							// id
							JSONObject idObject = (JSONObject) specialListC.get("id");
							if (idObject.get("court_bad") != null) {
								int brDishonestIdcard = idObject.getInteger("court_bad");//按身份证号查询法院失信人
								resObject.put("br_dishonest_idcard", brDishonestIdcard);
								resTO.setBrDishonestIdcard(brDishonestIdcard);
							} else {
								resObject.put("br_dishonest_idcard", "9999");
							}
							if (idObject.get("court_executed") != null) {
								int brEnforcedIdcard = idObject.getInteger("court_executed");//按身份证号查询法院被执行人
								resObject.put("br_enforced_idcard", brEnforcedIdcard);
								resTO.setBrEnforcedIdcard(brEnforcedIdcard);
							} else {
								resObject.put("br_enforced_idcard", "9999");
							}
							if (idObject.get("bank_fraud") != null) {
								int brIdBankFraud = idObject.getInteger("bank_fraud");//通过身份证号查询银行(含信用卡)资信不佳
								resObject.put("br_id_bank_fraud", brIdBankFraud);
								resTO.setBrIdBankFraud(brIdBankFraud);
							} else {
								resObject.put("br_id_bank_fraud", "9999");
							}
							if (idObject.get("bank_lost") != null) {
								int brIdBankLost = idObject.getInteger("bank_lost");//通过身份证号查询银行(含信用卡)高风险
								resObject.put("br_id_bank_lost", brIdBankLost);
								resTO.setBrIdBankLost(brIdBankLost);
							} else {
								resObject.put("br_id_bank_lost", "9999");
							}
							if (idObject.get("nbank_fraud") != null) {
								int brIdNbankFraud = idObject.getInteger("nbank_fraud");//通过身份证号查询非银(含全部非银类型)资信不佳
								resObject.put("br_id_nbank_fraud", brIdNbankFraud);
								resTO.setBrIdNbankFraud(brIdNbankFraud);
							} else {
								resObject.put("br_id_nbank_fraud", "9999");
							}
							if (idObject.get("nbank_lost") != null) {
								int brIdNbankLost = idObject.getInteger("nbank_lost");//通过身份证号查询非银(含全部非银类型)高风险
								resObject.put("br_id_nbank_lost", brIdNbankLost);
								resTO.setBrIdNbankLost(brIdNbankLost);
							} else {
								resObject.put("br_id_nbank_lost", "9999");
							} 
							if (idObject.get("nbank_nsloan_fraud") != null) {
								int brIdNbankNsloanFraud = idObject.getInteger("nbank_nsloan_fraud");//通过身份证号查询非银-持牌网络小贷资信不佳
								resObject.put("br_id_nbank_nsloan_fraud", brIdNbankNsloanFraud);
								resTO.setBrIdNbankNsloanFraud(brIdNbankNsloanFraud);
							} else {
								resObject.put("br_id_nbank_nsloan_fraud", "9999");
							}
							if (idObject.get("nbank_nsloan_lost") != null) {
								int brIdNbankNsloanLost = idObject.getInteger("nbank_nsloan_lost");//通过身份证号查询非银-持牌网络小贷高风险
								resObject.put("br_id_nbank_nsloan_lost", brIdNbankNsloanLost);
								resTO.setBrIdNbankNsloanLost(brIdNbankNsloanLost);
							} else {
								resObject.put("br_id_nbank_nsloan_lost", "9999");
							}
							if (idObject.get("nbank_sloan_fraud") != null) {
								int brIdNbankSloanFraud = idObject.getInteger("nbank_sloan_fraud");//通过身份证号查询非银-持牌小贷资信不佳
								resObject.put("br_id_nbank_sloan_fraud", brIdNbankSloanFraud);
								resTO.setBrIdNbankSloanFraud(brIdNbankSloanFraud);
							} else {
								resObject.put("br_id_nbank_sloan_fraud", "9999");
							}
							if (idObject.get("nbank_sloan_lost") != null) {
								int brIdNbankSloanLost = idObject.getInteger("nbank_sloan_lost");//通过身份证号查询非银-持牌小贷高风险
								resObject.put("br_id_nbank_sloan_lost", brIdNbankSloanLost);
								resTO.setBrIdNbankSloanLost(brIdNbankSloanLost);
							} else {
								resObject.put("br_id_nbank_sloan_lost", "9999");
							}
							if (idObject.get("nbank_cons_fraud") != null) {
								int brIdNbankConsFraud = idObject.getInteger("nbank_cons_fraud");//通过身份证号查询非银-持牌消费金融资信不佳
								resObject.put("br_id_nbank_cons_fraud", brIdNbankConsFraud);
								resTO.setBrIdNbankConsFraud(brIdNbankConsFraud);
							} else {
								resObject.put("br_id_nbank_cons_fraud", "9999");
							}
							if (idObject.get("nbank_cons_lost") != null) {
								int brIdNbankConsLost = idObject.getInteger("nbank_cons_lost");//通过身份证号查询非银-持牌消费金融高风险
								resObject.put("br_id_nbank_cons_lost", brIdNbankConsLost);
								resTO.setBrIdNbankConsLost(brIdNbankConsLost);
							} else {
								resObject.put("br_id_nbank_cons_lost", "9999");
							}
							if (idObject.get("nbank_finlea_fraud") != null) {
								int brIdNbankFinleaFraud = idObject.getInteger("nbank_finlea_fraud");//通过身份证号查询非银-持牌融资租赁资信不佳
								resObject.put("br_id_nbank_finlea_fraud", brIdNbankFinleaFraud);
								resTO.setBrIdNbankFinleaFraud(brIdNbankFinleaFraud);
							} else {
								resObject.put("br_id_nbank_finlea_fraud", "9999");
							}
							if (idObject.get("nbank_finlea_lost") != null) {
								int brIdNbankFinleaLost = idObject.getInteger("nbank_finlea_lost");//通过身份证号查询非银-持牌融资租赁高风险
								resObject.put("br_id_nbank_finlea_lost", brIdNbankFinleaLost);
								resTO.setBrIdNbankFinleaLost(brIdNbankFinleaLost);
							} else {
								resObject.put("br_id_nbank_finlea_lost", "9999");
							}
							if (idObject.get("nbank_autofin_fraud") != null) {
								int brIdNbankAutofinFraud = idObject.getInteger("nbank_autofin_fraud");//通过身份证号查询非银-持牌汽车金融资信不佳
								resObject.put("br_id_nbank_autofin_fraud", brIdNbankAutofinFraud);
								resTO.setBrIdNbankAutofinFraud(brIdNbankAutofinFraud);
							} else {
								resObject.put("br_id_nbank_autofin_fraud", "9999");
							}
							if (idObject.get("nbank_autofin_lost") != null) {
								int brIdNbankAutofinLost = idObject.getInteger("nbank_autofin_lost");//通过身份证号查询非银-持牌汽车金融高风险
								resObject.put("br_id_nbank_autofin_lost", brIdNbankAutofinLost);
								resTO.setBrIdNbankAutofinLost(brIdNbankAutofinLost);
							} else {
								resObject.put("br_id_nbank_autofin_lost", "9999");
							}
							if (idObject.get("nbank_other_fraud") != null) {
								int brIdNbankOtherFraud = idObject.getInteger("nbank_other_fraud");//通过身份证号查询非银-其他资信不佳
								resObject.put("br_id_nbank_other_fraud", brIdNbankOtherFraud);
								resTO.setBrIdNbankOtherFraud(brIdNbankOtherFraud);
							} else {
								resObject.put("br_id_nbank_other_fraud", "9999");
							}
							if (idObject.get("nbank_other_lost") != null) {
								int brIdNbankOtherLost = idObject.getInteger("nbank_other_lost");//通过身份证号查询非银-其他高风险
								resObject.put("br_id_nbank_other_lost", brIdNbankOtherLost);
								resTO.setBrIdNbankOtherLost(brIdNbankOtherLost);
							} else {
								resObject.put("br_id_nbank_other_lost", "9999");
							}
						} else {
							resObject.put("br_dishonest_idcard", "9999");
							resObject.put("br_enforced_idcard", "9999");
							resObject.put("br_id_bank_fraud", "9999");
							resObject.put("br_id_bank_lost", "9999");
							resObject.put("br_id_nbank_fraud", "9999");
							resObject.put("br_id_nbank_lost", "9999");
							resObject.put("br_id_nbank_nsloan_fraud", "9999");
							resObject.put("br_id_nbank_nsloan_lost", "9999");
							resObject.put("br_id_nbank_sloan_fraud", "9999");
							resObject.put("br_id_nbank_sloan_lost", "9999");
							resObject.put("br_id_nbank_cons_fraud", "9999");
							resObject.put("br_id_nbank_cons_lost", "9999");
							resObject.put("br_id_nbank_finlea_fraud", "9999");
							resObject.put("br_id_nbank_finlea_lost", "9999");
							resObject.put("br_id_nbank_autofin_fraud", "9999");
							resObject.put("br_id_nbank_autofin_lost", "9999");
							resObject.put("br_id_nbank_other_fraud", "9999");
							resObject.put("br_id_nbank_other_lost", "9999");
						}
						// cell
						if (specialListC.get("cell") != null) {
							JSONObject cellObject = (JSONObject) specialListC.get("cell");
							if (cellObject.get("bank_fraud") != null) {
								int brCellBankFraud = cellObject.getInteger("bank_fraud");//通过手机号查询银行(含信用卡)资信不佳
								resObject.put("br_cell_bank_fraud", brCellBankFraud);
								resTO.setBrCellBankFraud(brCellBankFraud);
							} else {
								resObject.put("br_cell_bank_fraud", "9999");
							}
							if (cellObject.get("bank_lost") != null) {
								int brCellBankLost = cellObject.getInteger("bank_lost");//通过手机号查询银行(含信用卡)高风险
								resObject.put("br_cell_bank_lost", brCellBankLost);
								resTO.setBrCellBankLost(brCellBankLost);
							} else {
								resObject.put("br_cell_bank_lost", "9999");
							}
							if (cellObject.get("nbank_fraud") != null) {
								int brCellNbankFraud = cellObject.getInteger("nbank_fraud");//通过手机号查询非银(含全部非银类型)资信不佳
								resObject.put("br_cell_nbank_fraud", brCellNbankFraud);
								resTO.setBrCellNbankFraud(brCellNbankFraud);
							} else {
								resObject.put("br_cell_nbank_fraud", "9999");
							}
							if (cellObject.get("nbank_lost") != null) {
								int brCellNbankLost = cellObject.getInteger("nbank_lost");//通过手机号查询非银(含全部非银类型)高风险
								resObject.put("br_cell_nbank_lost", brCellNbankLost);
								resTO.setBrCellNbankLost(brCellNbankLost);
							} else {
								resObject.put("br_cell_nbank_lost", "9999");
							}
							if (cellObject.get("nbank_nsloan_fraud") != null) {
								int brCellNbankNsloanFraud = cellObject.getInteger("nbank_nsloan_fraud");//通过手机号查询非银-持牌网络小贷资信不佳
								resObject.put("br_cell_nbank_nsloan_fraud", brCellNbankNsloanFraud);
								resTO.setBrCellNbankNsloanFraud(brCellNbankNsloanFraud);
							} else {
								resObject.put("br_cell_nbank_nsloan_fraud", "9999");
							}
							if (cellObject.get("nbank_nsloan_lost") != null) {
								int brCellNbankNsloanLost = cellObject.getInteger("nbank_nsloan_lost");//通过手机号查询非银-持牌网络小贷高风险
								resObject.put("br_cell_nbank_nsloan_lost", brCellNbankNsloanLost);
								resTO.setBrCellNbankNsloanLost(brCellNbankNsloanLost);
							} else {
								resObject.put("br_cell_nbank_nsloan_lost", "9999");
							}
							if (cellObject.get("nbank_sloan_fraud") != null) {
								int brCellNbankSloanFraud = cellObject.getInteger("nbank_sloan_fraud");//通过手机号查询非银-持牌小贷资信不佳
								resObject.put("br_cell_nbank_sloan_fraud", brCellNbankSloanFraud);
								resTO.setBrCellNbankSloanFraud(brCellNbankSloanFraud);
							} else {
								resObject.put("br_cell_nbank_sloan_fraud", "9999");
							}
							if (cellObject.get("nbank_sloan_lost") != null) {
								int brCellNbankSloanLost = cellObject.getInteger("nbank_sloan_lost");//通过手机号查询非银-持牌小贷高风险
								resObject.put("br_cell_nbank_sloan_lost", brCellNbankSloanLost);
								resTO.setBrCellNbankSloanLost(brCellNbankSloanLost);
							} else {
								resObject.put("br_cell_nbank_sloan_lost", "9999");
							}
							if (cellObject.get("nbank_cons_fraud") != null) {
								int brCellNbankConsFraud = cellObject.getInteger("nbank_cons_fraud");//通过手机号查询非银-持牌消费金融资信不佳
								resObject.put("br_cell_nbank_cons_fraud", brCellNbankConsFraud);
								resTO.setBrCellNbankConsFraud(brCellNbankConsFraud);
							} else {
								resObject.put("br_cell_nbank_cons_fraud", "9999");
							}
							if (cellObject.get("nbank_cons_lost") != null) {
								int brCellNbankConsLost = cellObject.getInteger("nbank_cons_lost");//通过手机号查询非银-持牌消费金融高风险
								resObject.put("br_cell_nbank_cons_lost", brCellNbankConsLost);
								resTO.setBrCellNbankConsLost(brCellNbankConsLost);
							} else {
								resObject.put("br_cell_nbank_cons_lost", "9999");
							}
							if (cellObject.get("nbank_finlea_fraud") != null) {
								int brCellNbankFinleaFraud = cellObject.getInteger("nbank_finlea_fraud");//通过手机号查询非银-持牌融资租赁资信不佳
								resObject.put("br_cell_nbank_finlea_fraud", brCellNbankFinleaFraud);
								resTO.setBrCellNbankFinleaFraud(brCellNbankFinleaFraud);
							} else {
								resObject.put("br_cell_nbank_finlea_fraud", "9999");
							}
							if (cellObject.get("nbank_finlea_lost") != null) {
								int brCellNbankFinleaLost = cellObject.getInteger("nbank_finlea_lost");//通过手机号查询非银-持牌融资租赁高风险
								resObject.put("br_cell_nbank_finlea_lost", brCellNbankFinleaLost);
								resTO.setBrCellNbankFinleaLost(brCellNbankFinleaLost);
							} else {
								resObject.put("br_cell_nbank_finlea_lost", "9999");
							}
							if (cellObject.get("nbank_autofin_fraud") != null) {
								int brCellNbankAutofinFraud = cellObject.getInteger("nbank_autofin_fraud");//通过手机号查询非银-持牌汽车金融资信不佳
								resObject.put("br_cell_nbank_autofin_fraud", brCellNbankAutofinFraud);
								resTO.setBrCellNbankAutofinFraud(brCellNbankAutofinFraud);
							} else {
								resObject.put("br_cell_nbank_autofin_fraud", "9999");
							}
							if (cellObject.get("nbank_autofin_lost") != null) {
								int brCellNbankAutofinLost = cellObject.getInteger("nbank_autofin_lost");//通过手机号查询非银-持牌汽车金融高风险
								resObject.put("br_cell_nbank_autofin_lost", brCellNbankAutofinLost);
								resTO.setBrCellNbankAutofinLost(brCellNbankAutofinLost);
							} else {
								resObject.put("br_cell_nbank_autofin_lost", "9999");
							}
							if (cellObject.get("nbank_other_fraud") != null) {
								int brCellNbankOtherFraud = cellObject.getInteger("nbank_other_fraud");//通过手机号查询非银-其他资信不佳
								resObject.put("br_cell_nbank_other_fraud", brCellNbankOtherFraud);
								resTO.setBrCellNbankOtherFraud(brCellNbankOtherFraud);
							} else {
								resObject.put("br_cell_nbank_other_fraud", "9999");
							}
							if (cellObject.get("nbank_other_lost") != null) {
								int brCellNbankOtherLost = cellObject.getInteger("nbank_other_lost");//通过手机号查询非银-其他高风险
								resObject.put("br_cell_nbank_other_lost", brCellNbankOtherLost);
								resTO.setBrCellNbankOtherLost(brCellNbankOtherLost);
							} else {
								resObject.put("br_cell_nbank_other_lost", "9999");
							}
						} else {
							resObject.put("br_cell_bank_fraud", "9999");
							resObject.put("br_cell_bank_lost", "9999");
							resObject.put("br_cell_nbank_fraud", "9999");
							resObject.put("br_cell_nbank_lost", "9999");
							resObject.put("br_cell_nbank_nsloan_fraud", "9999");
							resObject.put("br_cell_nbank_nsloan_lost", "9999");
							resObject.put("br_cell_nbank_sloan_fraud", "9999");
							resObject.put("br_cell_nbank_sloan_lost", "9999");
							resObject.put("br_cell_nbank_cons_fraud", "9999");
							resObject.put("br_cell_nbank_cons_lost", "9999");
							resObject.put("br_cell_nbank_finlea_fraud", "9999");
							resObject.put("br_cell_nbank_finlea_lost", "9999");
							resObject.put("br_cell_nbank_autofin_fraud", "9999");
							resObject.put("br_cell_nbank_autofin_lost", "9999");
							resObject.put("br_cell_nbank_other_fraud", "9999");
							resObject.put("br_cell_nbank_other_lost", "9999");
						}
						if (specialListC.get("cell") != null && specialListC.get("id") != null) {
							JSONObject idObject = (JSONObject) specialListC.get("id");
							JSONObject cellObject = (JSONObject) specialListC.get("cell");
							// 查询银行(含信用卡)中风险命中次数
							int brBankBadAllnum = 9999;
							if (StringUtils.isNotEmpty(idObject.getString("bank_bad_allnum")) &&
									StringUtils.isNotEmpty(cellObject.getString("bank_bad_allnum"))) {
								int brIdBankBadAllnum = Integer.parseInt(idObject.getString("bank_bad_allnum"));
								int brCellBankBadAllnum = Integer.parseInt(cellObject.getString("bank_bad_allnum"));
								brBankBadAllnum = Math.max(brIdBankBadAllnum, brCellBankBadAllnum);
								resObject.put("br_bank_bad_allnum", brBankBadAllnum);
							} else {
								resObject.put("br_bank_bad_allnum", "9999");
							}
							resObject.put("sl_id_bank_bad_allnum", idObject.getString("bank_bad_allnum"));
							resObject.put("sl_cell_bank_bad_allnum", cellObject.getString("bank_bad_allnum"));
							resTO.setBrBankBadAllnum(brBankBadAllnum);
							// 查询非银(含全部非银类型)中风险命中次数
							int brNbankBadAllnum = 9999;
							if (StringUtils.isNotEmpty(idObject.getString("nbank_bad_allnum")) &&
									StringUtils.isNotEmpty(cellObject.getString("nbank_bad_allnum"))) {
								int brIdNbnkBadAllnum = Integer.parseInt(idObject.getString("nbank_bad_allnum"));
								int brCellNbankBadAllnum = Integer.parseInt(cellObject.getString("nbank_bad_allnum"));
								brNbankBadAllnum = Math.max(brIdNbnkBadAllnum, brCellNbankBadAllnum);
								resObject.put("br_nbank_bad_allnum", brNbankBadAllnum);	
							} else {
								resObject.put("br_nbank_bad_allnum", "9999");	
							}
							resObject.put("sl_id_nbank_bad_allnum", idObject.getString("nbank_bad_allnum"));
							resObject.put("sl_cell_nbank_bad_allnum", cellObject.getString("nbank_bad_allnum"));
							resTO.setBrNbankBadAllnum(brNbankBadAllnum);
							// 查询非银-持牌网络小贷中风险命中次数
							int brNbankNsloanBadAllnum = 9999;
							if (StringUtils.isNotEmpty(idObject.getString("nbank_nsloan_bad_allnum")) &&
									StringUtils.isNotEmpty(cellObject.getString("nbank_nsloan_bad_allnum"))) {
								int brIdNbankNsloanBadAllnum = Integer.parseInt(idObject.getString("nbank_nsloan_bad_allnum"));
								int brCellNbankNsloanBadAllnum = Integer.parseInt(cellObject.getString("nbank_nsloan_bad_allnum"));
								brNbankNsloanBadAllnum = Math.max(brIdNbankNsloanBadAllnum, brCellNbankNsloanBadAllnum);
								resObject.put("br_nbank_nsloan_bad_allnum", brNbankNsloanBadAllnum);
							} else {
								resObject.put("br_nbank_nsloan_bad_allnum", "9999");
							}
							resObject.put("sl_id_nbank_nsloan_bad_allnum", idObject.getString("nbank_nsloan_bad_allnum"));
							resObject.put("sl_cell_nbank_nsloan_bad_allnum", cellObject.getString("nbank_nsloan_bad_allnum"));
							resTO.setBrNbankNsloanBadAllnum(brNbankNsloanBadAllnum);
							// 查询非银-持牌小贷中风险命中次数
							int brNbankSloanBadAllnum = 9999;
							if (StringUtils.isNotEmpty(idObject.getString("nbank_sloan_bad_allnum")) &&
									StringUtils.isNotEmpty(cellObject.getString("nbank_sloan_bad_allnum"))) {
								int brIdNbankSloanBadAllnum = Integer.parseInt(idObject.getString("nbank_sloan_bad_allnum"));
								int brCellNbankSloanBadAllnum = Integer.parseInt(cellObject.getString("nbank_sloan_bad_allnum"));
								brNbankSloanBadAllnum = Math.max(brIdNbankSloanBadAllnum, brCellNbankSloanBadAllnum);
								resObject.put("br_nbank_sloan_bad_allnum", brNbankSloanBadAllnum);
							} else {
								resObject.put("br_nbank_sloan_bad_allnum", "9999");
							}
							resObject.put("sl_id_nbank_nsloan_bad_allnum", idObject.getString("nbank_nsloan_bad_allnum"));
							resObject.put("sl_cell_nbank_nsloan_bad_allnum", cellObject.getString("nbank_nsloan_bad_allnum"));
							resTO.setBrNbankSloanBadAllnum(brNbankSloanBadAllnum);
							// 查询非银-持牌消费金融中风险命中次数
							int brNbankConsBadAllnum = 9999;
							if (StringUtils.isNotEmpty(idObject.getString("nbank_cons_bad_allnum")) &&
									StringUtils.isNotEmpty(cellObject.getString("nbank_cons_bad_allnum"))) {
								int brIdNbankConsBadAllnum = Integer.parseInt(idObject.getString("nbank_cons_bad_allnum"));
								int brCellNbankConsBadAllnum = Integer.parseInt(cellObject.getString("nbank_cons_bad_allnum"));
								brNbankConsBadAllnum = Math.max(brIdNbankConsBadAllnum, brCellNbankConsBadAllnum);
								resObject.put("br_nbank_cons_bad_allnum", brNbankConsBadAllnum);
							} else {
								resObject.put("br_nbank_cons_bad_allnum", "9999");
							}
							resObject.put("sl_id_nbank_cons_bad_allnum", idObject.getString("nbank_cons_bad_allnum"));
							resObject.put("sl_cell_nbank_cons_bad_allnum", cellObject.getString("nbank_cons_bad_allnum"));
							resTO.setBrNbankConsBadAllnum(brNbankConsBadAllnum);
							// 查询非银-持牌融资租赁中风险命中次数
							int brNbankFinleaBadAllnum = 9999;
							if (StringUtils.isNotEmpty(idObject.getString("nbank_finlea_bad_allnum")) &&
									StringUtils.isNotEmpty(cellObject.getString("nbank_finlea_bad_allnum"))) {
								int brIdNbankFinleaBadAllnum = Integer.parseInt(idObject.getString("nbank_finlea_bad_allnum"));
								int brCellNbankFinleaBadAllnum = Integer.parseInt(cellObject.getString("nbank_finlea_bad_allnum"));
								brNbankFinleaBadAllnum = Math.max(brIdNbankFinleaBadAllnum, brCellNbankFinleaBadAllnum);
								resObject.put("br_nbank_finlea_bad_allnum", brNbankFinleaBadAllnum);
							} else {
								resObject.put("br_nbank_finlea_bad_allnum", "9999");
							}
							resObject.put("sl_id_nbank_finlea_bad_allnum", idObject.getString("nbank_finlea_bad_allnum"));
							resObject.put("sl_cell_nbank_finlea_bad_allnum", cellObject.getString("nbank_finlea_bad_allnum"));
							resTO.setBrNbankFinleaBadAllnum(brNbankFinleaBadAllnum);
							// 查询非银-持牌汽车金融中风险命中次数
							int brNbankAutofinBadAllnum = 9999;
							if (StringUtils.isNotEmpty(idObject.getString("nbank_autofin_bad_allnum")) &&
									StringUtils.isNotEmpty(cellObject.getString("nbank_autofin_bad_allnum"))) {
								int brIdNbankAutofinBadAllnum = Integer.parseInt(idObject.getString("nbank_autofin_bad_allnum"));
								int brCellNbankAutofinBadAllnum = Integer.parseInt(cellObject.getString("nbank_autofin_bad_allnum"));
								brNbankAutofinBadAllnum = Math.max(brIdNbankAutofinBadAllnum, brCellNbankAutofinBadAllnum);
								resObject.put("br_nbank_autofin_bad_allnum", brNbankAutofinBadAllnum);
							} else {
								resObject.put("br_nbank_autofin_bad_allnum", "9999");
							}
							resObject.put("sl_id_nbank_autofin_bad_allnum", idObject.getString("nbank_autofin_bad_allnum"));
							resObject.put("sl_cell_nbank_autofin_bad_allnum", cellObject.getString("nbank_autofin_bad_allnum"));
							resTO.setBrNbankAutofinBadAllnum(brNbankAutofinBadAllnum);
							// 查询非银-其他中风险命中次数
							int brNbankOtherBadAllnum = 9999;
							if (StringUtils.isNotEmpty(idObject.getString("nbank_other_bad_allnum")) &&
									StringUtils.isNotEmpty(cellObject.getString("nbank_other_bad_allnum"))) {
								int brIdNbankOtherBadAllnum = Integer.parseInt(idObject.getString("nbank_other_bad_allnum"));
								int brCellNbankOtherBadAllnum = Integer.parseInt(cellObject.getString("nbank_other_bad_allnum"));
								brNbankOtherBadAllnum = Math.max(brIdNbankOtherBadAllnum, brCellNbankOtherBadAllnum);
								resObject.put("br_nbank_other_bad_allnum", brNbankOtherBadAllnum);
							} else {
								resObject.put("br_nbank_other_bad_allnum", "9999");
							}
							resObject.put("sl_id_nbank_other_bad_allnum", idObject.getString("nbank_other_bad_allnum"));
							resObject.put("sl_cell_nbank_other_bad_allnum", cellObject.getString("nbank_other_bad_allnum"));
							resTO.setBrNbankOtherBadAllnum(brNbankOtherBadAllnum);
							// 查询法院失信人命中次数
							if (StringUtils.isNotEmpty(idObject.getString("court_bad_allnum"))) {
								int brCourtBadAllnum = Integer.parseInt(idObject.getString("court_bad_allnum"));
								resTO.setBrCourtBadAllnum(brCourtBadAllnum);
								resObject.put("br_court_bad_allnum", idObject.getString("court_bad_allnum"));
							} else {
								resObject.put("br_court_bad_allnum", "9999");
							}
							// 查询法院被执行人命中次数
							if (StringUtils.isNotEmpty(idObject.getString("court_executed_allnum"))) {
								int brCourtExecutedAllnum = Integer.parseInt(idObject.getString("court_executed_allnum"));
								resTO.setBrCourtExecutedAllnum(brCourtExecutedAllnum);
								resObject.put("br_court_executed_allnum", idObject.getString("court_executed_allnum"));
							} else {
								resObject.put("br_court_executed_allnum", "9999");
							}
						}
						// 查询公安信息异常命中次数  （数据源接口无返回）br_bad_info_allnum
					} else {
						resObject.put("br_dishonest_idcard", "9999");
						resObject.put("br_enforced_idcard", "9999");
						resObject.put("br_id_bank_fraud", "9999");
						resObject.put("br_id_bank_lost", "9999");
						resObject.put("br_id_nbank_fraud", "9999");
						resObject.put("br_id_nbank_lost", "9999");
						resObject.put("br_id_nbank_nsloan_fraud", "9999");
						resObject.put("br_id_nbank_nsloan_lost", "9999");
						resObject.put("br_id_nbank_sloan_fraud", "9999");
						resObject.put("br_id_nbank_sloan_lost", "9999");
						resObject.put("br_id_nbank_cons_fraud", "9999");
						resObject.put("br_id_nbank_cons_lost", "9999");
						resObject.put("br_id_nbank_finlea_fraud", "9999");
						resObject.put("br_id_nbank_finlea_lost", "9999");
						resObject.put("br_id_nbank_autofin_fraud", "9999");
						resObject.put("br_id_nbank_autofin_lost", "9999");
						resObject.put("br_id_nbank_other_fraud", "9999");
						resObject.put("br_id_nbank_other_lost", "9999");
						resObject.put("br_cell_bank_fraud", "9999");
						resObject.put("br_cell_bank_lost", "9999");
						resObject.put("br_cell_nbank_fraud", "9999");
						resObject.put("br_cell_nbank_lost", "9999");
						resObject.put("br_cell_nbank_nsloan_fraud", "9999");
						resObject.put("br_cell_nbank_nsloan_lost", "9999");
						resObject.put("br_cell_nbank_sloan_fraud", "9999");
						resObject.put("br_cell_nbank_sloan_lost", "9999");
						resObject.put("br_cell_nbank_cons_fraud", "9999");
						resObject.put("br_cell_nbank_cons_lost", "9999");
						resObject.put("br_cell_nbank_finlea_fraud", "9999");
						resObject.put("br_cell_nbank_finlea_lost", "9999");
						resObject.put("br_cell_nbank_autofin_fraud", "9999");
						resObject.put("br_cell_nbank_autofin_lost", "9999");
						resObject.put("br_cell_nbank_other_fraud", "9999");
						resObject.put("br_cell_nbank_other_lost", "9999");
						resObject.put("br_bank_bad_allnum", "9999");
						resObject.put("br_nbank_bad_allnum", "9999");
						resObject.put("br_nbank_nsloan_bad_allnum", "9999");
						resObject.put("br_nbank_sloan_bad_allnum", "9999");
						resObject.put("br_nbank_cons_bad_allnum", "9999");
						resObject.put("br_nbank_finlea_bad_allnum", "9999");
						resObject.put("br_nbank_autofin_bad_allnum", "9999");
						resObject.put("br_nbank_other_bad_allnum", "9999");
						resObject.put("br_court_bad_allnum", "9999");
						resObject.put("br_court_executed_allnum", "9999");
					}
					// 法院被执行人-限高版
					if (StringUtils.isNotBlank(flagJsonObject.getString("executionlimited")) &&
							flagJsonObject.get("executionlimited") != null) {
						int brFlagExecutionlimited = Integer.parseInt(flagJsonObject.getString("executionlimited"));
						resTO.setBrFlagExecutionlimited(brFlagExecutionlimited);
						resObject.put("br_flag_executionlimited", flagJsonObject.getString("executionlimited"));
					} else {
						resObject.put("br_flag_executionlimited", "9999");
					}
					// 借贷意向验证
					if (StringUtils.isNotBlank(flagJsonObject.getString("applyloanstr")) &&
							flagJsonObject.getInteger("applyloanstr") == 1) {
						JSONObject applyLoanStr = (JSONObject) resData.get("ApplyLoanStr");
						if (resData.get("ApplyLoanStr") != null) {
							// m1
							if (applyLoanStr.get("m1") != null) {
								JSONObject m1Object = (JSONObject) applyLoanStr.get("m1");
								if (m1Object.get("cell") != null) {
									JSONObject m1CellObject = (JSONObject) m1Object.get("cell");
									if (m1CellObject.get("pdl") != null) {
										JSONObject m1CellPdlObject = (JSONObject) m1CellObject.get("pdl");
										if (m1CellPdlObject.get("allnum") != null) {
											int brApplyPaydayCntCell30d = m1CellPdlObject.getInteger("allnum");//手机号查询，近一个月申请线上小额现金贷次数
											resTO.setBrApplyPaydayCntCell30d(brApplyPaydayCntCell30d);
											resObject.put("br_apply_payday_cnt_cell_30d", brApplyPaydayCntCell30d);
										} else {
											resObject.put("br_apply_payday_cnt_cell_30d", "9999");
										}
									} else {
										resObject.put("br_apply_payday_cnt_cell_30d", "9999");
									}
								} else {
									resObject.put("br_apply_payday_cnt_cell_30d", "9999");
								}
								if (m1Object.get("id") != null) {
									JSONObject m1IdObject = (JSONObject) m1Object.get("id");
									if (m1IdObject.get("pdl") != null) {
										JSONObject m1IdPdlObject = (JSONObject) m1IdObject.get("pdl");
										if (m1IdPdlObject.get("allnum") != null) {
											int brApplyPaydayCntId30d = m1IdPdlObject.getInteger("allnum");//身份证号查询，近一个月申请线上小额现金贷次数
											resTO.setBrApplyPaydayCntId30d(brApplyPaydayCntId30d);
											resObject.put("br_apply_payday_cnt_id_30d", brApplyPaydayCntId30d);
										} else {
											resObject.put("br_apply_payday_cnt_id_30d", "9999");
										}
									} else {
										resObject.put("br_apply_payday_cnt_id_30d", "9999");
									}
									JSONObject m1IdNbankObject = (JSONObject) m1IdObject.get("nbank");
									if (m1IdNbankObject != null) {
										if (m1IdNbankObject.get("week_allnum") != null) {
											int brM1IdNbankWeekAllnum = m1IdNbankObject.getInteger("week_allnum");//按身份证号查询，近1个月在非银机构周末申请次数
											resTO.setBrM1IdNbankWeekAllnum(brM1IdNbankWeekAllnum);
											resObject.put("br_m1_id_nbank_week_allnum", brM1IdNbankWeekAllnum);
										} else {
											resObject.put("br_m1_id_nbank_week_allnum", "9999");
										}
										if (m1IdNbankObject.get("nsloan_allnum") != null) {
											int brM1IdNbankNsloanAllnum = m1IdNbankObject.getInteger("nsloan_allnum");//按身份证号查询，近6个月在非银机构-持牌网络小贷机构申请次数
											resTO.setBrM1IdNbankNsloanAllnum(brM1IdNbankNsloanAllnum);
											resObject.put("br_m6_id_nbank_nsloan_allnum", brM1IdNbankNsloanAllnum);
										} else {
											resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");
										}
									} else {
										resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");
										resObject.put("br_m1_id_nbank_week_allnum", "9999");
									}
								} else {
									resObject.put("br_apply_payday_cnt_cell_30d", "9999");
									resObject.put("br_apply_payday_cnt_id_30d", "9999");
									resObject.put("br_m1_id_nbank_week_allnum", "9999");
									resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");
								}
							} else {
								resObject.put("br_apply_payday_cnt_cell_30d", "9999");
								resObject.put("br_apply_payday_cnt_id_30d", "9999");
								resObject.put("br_m1_id_nbank_week_allnum", "9999");
								resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");
							}
							// d7
							if (applyLoanStr.get("d7") != null) {
								JSONObject d7Object = (JSONObject) applyLoanStr.get("d7");
								if ( d7Object.get("id") != null) {
									JSONObject d7IdObject = (JSONObject) d7Object.get("id");
									if (d7IdObject.get("nbank") != null) {
										JSONObject d7IdNbankObject = (JSONObject) d7IdObject.get("nbank");
										if (d7IdNbankObject.get("nsloan_allnum") != null) {
											int brApplyNmfinCntId7d  = d7IdNbankObject.getInteger("nsloan_allnum");//按身份证号查询，近7天在非银机构-持牌网络小贷机构申请次数
											resTO.setBrApplyNmfinCntId7d(brApplyNmfinCntId7d);
											resObject.put("br_apply_nmfin_cnt_id_7d", brApplyNmfinCntId7d);
										} else {
											resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
										}
										// 2020-06-09 add
										if (d7IdNbankObject.get("p2p_allnum") != null) {
											int brD7IdNbankP2pAllnum  = d7IdNbankObject.getInteger("p2p_allnum");//按身份证号查询，近7天在非银机构-p2p机构申请次数
											resTO.setBrD7IdNbankP2pAllnum(brD7IdNbankP2pAllnum);
											resObject.put("br_d7_id_nbank_p2p_allnum", brD7IdNbankP2pAllnum);
										} else {
											resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
										}
									} else {
										resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
										resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
									}
								} else {
									resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
									resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
								}
								if (d7Object.get("cell") != null) {
									JSONObject d7CellObject = (JSONObject) d7Object.get("cell");
									if (d7CellObject.get("nbank") != null) {
										JSONObject d7CellNbankObject = (JSONObject) d7CellObject.get("nbank");
										if (d7CellNbankObject.get("nsloan_allnum") != null) {
											int brApplyNmfinCntCell7d = d7CellNbankObject.getInteger("nsloan_allnum");//按手机号查询，近7天在非银机构-持牌网络小贷机构申请次数
											resTO.setBrApplyNmfinCntCell7d(brApplyNmfinCntCell7d);
											resObject.put("br_apply_nmfin_cnt_cell_7d", brApplyNmfinCntCell7d);
										} else {
											resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");
										}
									} else {
										resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");
									}
								} else {
									resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");
								}
							} else {
								resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
								resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");
								resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
							}
							// m6
							if (applyLoanStr.get("m6") != null) {
								JSONObject m6Object = (JSONObject) applyLoanStr.get("m6");
								if (m6Object.get("id") != null) {
									JSONObject m6IdObject = (JSONObject) m6Object.get("id");
									if (m6IdObject.get("max_inteday") != null) {
										int brM6IdMaxInteday = m6IdObject.getInteger("max_inteday");//按身份证号查询，近6个月申请最大间隔天数
										resTO.setBrM6IdMaxInteday(brM6IdMaxInteday);
										resObject.put("br_m6_id_max_inteday", brM6IdMaxInteday);
									} else {
										resObject.put("br_m6_id_max_inteday", "9999");
									}
									if (m6IdObject.get("nbank") != null) {
										JSONObject m6IdNbankObject = (JSONObject) m6IdObject.get("nbank");
										if (m6IdNbankObject.get("avg_monnum") != null) {
											double brApplyNbankAvgcntIdM6  = m6IdNbankObject.getDouble("avg_monnum");//按身份证号查询，近6个月在非银机构平均每月申请次数(有申请月份平均)
											resTO.setBrApplyNbankAvgcntIdM6(brApplyNbankAvgcntIdM6);
											resObject.put("br_apply_nbank_avgcnt_id_m6", brApplyNbankAvgcntIdM6);
										} else {
											resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
										}
										if (m6IdNbankObject.get("cf_allnum") != null) {
											int brM6IdNbankCfAllnum  = m6IdNbankObject.getInteger("cf_allnum");//按身份证号查询，近6个月在非银机构-消费类分期机构申请次数
											resTO.setBrM6IdNbankCfAllnum(brM6IdNbankCfAllnum);
											resObject.put("br_m6_id_nbank_cf_allnum", brM6IdNbankCfAllnum);
										} else {
											resObject.put("br_m6_id_nbank_cf_allnum", "9999");
										}
										if (m6IdNbankObject.get("max_inteday") != null) {
											int brM6IdNbankMaxInteday  = m6IdNbankObject.getInteger("max_inteday");//按身份证号查询，近6个月在非银机构申请最大间隔天数
											resTO.setBrM6IdNbankMaxInteday(brM6IdNbankMaxInteday);
											resObject.put("br_m6_id_nbank_max_inteday", brM6IdNbankMaxInteday);
										} else {
											resObject.put("br_m6_id_nbank_max_inteday", "9999");
										}
										if (m6IdNbankObject.get("ca_allnum") != null) {
											int brM6IdNbankCaAllnum  = m6IdNbankObject.getInteger("ca_allnum");//按身份证号查询，近6个月在非银机构-现金类分期机构申请次数
											resTO.setBrM6IdNbankCaAllnum(brM6IdNbankCaAllnum);
											resObject.put("br_m6_id_nbank_ca_allnum", brM6IdNbankCaAllnum);
										} else {
											resObject.put("br_m6_id_nbank_ca_allnum", "9999");
										}
										if (m6IdNbankObject.get("min_monnum") != null) {
											int brM6IdNbankMinMonnum  = m6IdNbankObject.getInteger("min_monnum");//按身份证号查询，近6个月在非银机构最小月申请次数
											resTO.setBrM6IdNbankMinMonnum(brM6IdNbankMinMonnum);
											resObject.put("br_m6_id_nbank_min_monnum", brM6IdNbankMinMonnum);
										} else {
											resObject.put("br_m6_id_nbank_min_monnum", "9999");
										}
										//2020-06-10 add
										if (m6IdNbankObject.get("p2p_allnum") != null) {
											int brM6IdNbankP2pAllnum  = m6IdNbankObject.getInteger("p2p_allnum");//按身份证号查询，近6个月在非银机构-p2p机构申请次数
											resTO.setBrM6IdNbankP2pAllnum(brM6IdNbankP2pAllnum);
											resObject.put("br_m6_id_nbank_p2p_allnum", brM6IdNbankP2pAllnum);
										} else {
											resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
										}
									} else {
										resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
										resObject.put("br_m6_id_nbank_cf_allnum", "9999");
										resObject.put("br_m6_id_nbank_max_inteday", "9999");
										resObject.put("br_m6_id_nbank_ca_allnum", "9999");
										resObject.put("br_m6_id_nbank_min_monnum", "9999");
										
										resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
									}
								} else {
									resObject.put("br_m6_id_max_inteday", "9999");
									resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
									resObject.put("br_m6_id_nbank_cf_allnum", "9999");
									resObject.put("br_m6_id_nbank_max_inteday", "9999");
									resObject.put("br_m6_id_nbank_ca_allnum", "9999");
									resObject.put("br_m6_id_nbank_min_monnum", "9999");
									
									resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
								}
								if (m6Object.get("cell") != null) {
									JSONObject m6CellObject = (JSONObject) m6Object.get("cell");
									if (m6CellObject.get("nbank") != null) {
										JSONObject m6CellNbankObject = (JSONObject) m6CellObject.get("nbank");
										if (m6CellNbankObject.get("avg_monnum") != null) {
											double brApplyNbankAvgcntCellM6  = m6CellNbankObject.getDouble("avg_monnum");//按手机号查询，近6个月在非银机构平均每月申请次数(有申请月份平均)
											resTO.setBrApplyNbankAvgcntCellM6(brApplyNbankAvgcntCellM6);
											resObject.put("br_apply_nbank_avgcnt_cell_m6", brApplyNbankAvgcntCellM6);
										} else {
											resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
										}
										//2020-06-10 add
										if (m6CellNbankObject.get("p2p_allnum") != null) {
											int brM6CellNbankP2pAllnum  = m6CellNbankObject.getInteger("p2p_allnum");//按手机号查询，近6个月在非银机构-p2p机构申请次数
											resTO.setBrApplyNbankAvgcntCellM6(brM6CellNbankP2pAllnum);
											resObject.put("br_m6_cell_nbank_p2p_allnum", brM6CellNbankP2pAllnum);
										} else {
											resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
										}
									} else {
										resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
										
										resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
									}
									if (m6CellObject.get("max_inteday") != null) {
										int brM6CellMaxInteday  = m6CellObject.getInteger("max_inteday");//按手机号查询，近6个月申请最大间隔天数
										resTO.setBrM6CellMaxInteday(brM6CellMaxInteday);
										resObject.put("br_m6_cell_max_inteday", brM6CellMaxInteday);
									} else {
										resObject.put("br_m6_cell_max_inteday", "9999");
									}
								} else {
									resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
									resObject.put("br_m6_cell_max_inteday", "9999");
									
									resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
								}
							} else {
								resObject.put("br_m6_id_max_inteday", "9999");
								resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
								resObject.put("br_m6_id_nbank_cf_allnum", "9999");
								resObject.put("br_m6_id_nbank_max_inteday", "9999");
								resObject.put("br_m6_id_nbank_ca_allnum", "9999");
								resObject.put("br_m6_id_nbank_min_monnum", "9999");
								resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
								resObject.put("br_m6_cell_max_inteday", "9999");
								
								resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
								resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
							}
							// d15
							if (applyLoanStr.get("d15") != null) {
								JSONObject d15Object = (JSONObject) applyLoanStr.get("d15");
								if (d15Object.get("id") != null) {
									JSONObject d15IdObject = (JSONObject) d15Object.get("id");
									if (d15IdObject.get("pdl") != null) {
										JSONObject d15IdPdlObject = (JSONObject) d15IdObject.get("pdl");
										if (d15IdPdlObject.get("orgnum") != null) {
											int brApplyPaydayOrgcntId15d  = d15IdPdlObject.getInteger("orgnum");//按身份证号查询，近15天申请线上小额现金贷的机构数
											resTO.setBrApplyPaydayOrgcntId15d(brApplyPaydayOrgcntId15d);
											resObject.put("br_apply_payday_orgcnt_id_15d", brApplyPaydayOrgcntId15d);
										} else {
											resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
										}
									} else {
										resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
									}
								} else {
									resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
								}
								if (d15Object.get("cell") != null) {
									JSONObject d15CellObject = (JSONObject) d15Object.get("cell");
									if (d15CellObject.get("pdl") != null) {
										JSONObject d15CellPdlObject = (JSONObject) d15CellObject.get("pdl");
										if (d15CellPdlObject.get("orgnum") != null) {
											int brApplyPaydayOrgcntCell15d  = d15CellPdlObject.getInteger("orgnum");//按手机号查询，近15天申请线上小额现金贷的机构数
											resTO.setBrApplyPaydayOrgcntCell15d(brApplyPaydayOrgcntCell15d);
											resObject.put("br_apply_payday_orgcnt_cell_15d", brApplyPaydayOrgcntCell15d);
										} else {
											resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");
										}
									} else {
										resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");
									}
									// 2020-06-09 add
									if (d15CellObject.get("nbank") != null) {
										JSONObject d15CellNbankObject = (JSONObject) d15CellObject.get("nbank");
										if (d15CellNbankObject.get("ca_allnum") != null) {
											int brD15CellNbankCaAllnum  = d15CellNbankObject.getInteger("ca_allnum");//按手机号查询，近15天在非银机构-现金类分期机构申请次数
											resTO.setBrD15CellNbankCaAllnum(brD15CellNbankCaAllnum);
											resObject.put("br_d15_cell_nbank_ca_allnum", brD15CellNbankCaAllnum);
										} else {
											resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
										}
									} else {
										resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
									}
								} else {
									resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");
									resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
								}
							} else {
								resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
								resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");
								resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
							}
							// m12
							if (applyLoanStr.get("m12") != null) {
								JSONObject m12Object = (JSONObject) applyLoanStr.get("m12");
								if (m12Object.get("id") != null) {
									JSONObject m12IdObject = (JSONObject) m12Object.get("id");
									if (m12IdObject.get("bank") != null) {
										JSONObject m12IdBankObject = (JSONObject) m12IdObject.get("bank");
										if (m12IdBankObject.get("orgnum") != null) {
											int brApplyBankOrgcntIdM12  = m12IdBankObject.getInteger("orgnum");//按身份证号查询，近12个月在银行机构申请机构数
											resTO.setBrApplyBankOrgcntIdM12(brApplyBankOrgcntIdM12);
											resObject.put("br_apply_bank_orgcnt_id_m12", brApplyBankOrgcntIdM12);
										} else {
											resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
										}
										
										if (m12IdObject.get("nbank") != null) {
											JSONObject m12IdNbankObject = (JSONObject) m12IdObject.get("nbank");
											if (m12IdNbankObject.get("max_inteday") != null) {
												int brM12IdNbankMaxInteday = m12IdNbankObject.getInteger("max_inteday");//按身份证号查询，近12个月在非银机构申请最大间隔天数
												resTO.setBrM12IdNbankMaxInteday(brM12IdNbankMaxInteday);
												resObject.put("br_m12_id_nbank_max_inteday", brM12IdNbankMaxInteday);
											} else {
												resObject.put("br_m12_id_nbank_max_inteday", "9999");
											}
											if (m12IdNbankObject.get("cons_orgnum") != null) {
												int brM12IdNbankConsOrgnum = m12IdNbankObject.getInteger("cons_orgnum");//按身份证号查询，近12个月在非银机构-持牌消费金融机构申请机构数
												resTO.setBrM12IdNbankConsOrgnum(brM12IdNbankConsOrgnum);
												resObject.put("br_m12_id_nbank_cons_orgnum", brM12IdNbankConsOrgnum);
											} else {
												resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
											}
											if (m12IdNbankObject.get("nsloan_allnum") != null) {
												int brM12IdNbankNsloanAllnum = m12IdNbankObject.getInteger("nsloan_allnum");//按身份证号查询，近12个月在非银机构-持牌网络小贷机构申请次数
												resTO.setBrM12IdNbankNsloanAllnum(brM12IdNbankNsloanAllnum);
												resObject.put("br_m12_id_nbank_nsloan_allnum", brM12IdNbankNsloanAllnum);
											} else {
												resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
											}
											if (m12IdNbankObject.get("ca_orgnum") != null) {
												int brM12IdNbankCaOrgnum = m12IdNbankObject.getInteger("ca_orgnum");//按身份证号查询，近12个月在非银机构-现金类分期申请机构数
												resTO.setBrM12IdNbankCaOrgnum(brM12IdNbankCaOrgnum);
												resObject.put("br_m12_id_nbank_ca_orgnum", brM12IdNbankCaOrgnum);
											} else {
												resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
											}
										} else {
											resObject.put("br_m12_id_nbank_max_inteday", "9999");
											resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
											resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
											resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
										}
									} else {
										resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
										resObject.put("br_m12_id_nbank_max_inteday", "9999");
										resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
										resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
										resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
									}
								} else {
									resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
									resObject.put("br_m12_id_nbank_max_inteday", "9999");
									resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
									resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
									resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
								}
								if (m12Object.get("cell") != null) {
									JSONObject m12CellObject = (JSONObject) m12Object.get("cell");
									if (m12CellObject.get("bank") != null) {
										JSONObject m12CellBankObject = (JSONObject) m12CellObject.get("bank");
										if (m12CellBankObject.get("orgnum") != null) {
											int brApplyBankOrgcntCellM12  = m12CellBankObject.getInteger("orgnum");//按手机号查询，近12个月在银行机构申请机构数
											resTO.setBrApplyBankOrgcntCellM12(brApplyBankOrgcntCellM12);
											resObject.put("br_apply_bank_orgcnt_cell_m12", brApplyBankOrgcntCellM12);
										} else {
											resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
										}
									} else {
										resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
										
									}
									// 2020-06-10 add
									if (m12CellObject.get("nbank") != null) {
										JSONObject m12CellNbankObject = (JSONObject) m12CellObject.get("nbank");
										if (m12CellNbankObject.get("ca_allnum") != null) {
											int brM12CellNbankCaAllnum  = m12CellNbankObject.getInteger("ca_allnum");//按手机号查询，近12个月在非银机构-现金类分期机构申请次数
											resTO.setBrM12CellNbankCaAllnum(brM12CellNbankCaAllnum);
											resObject.put("br_m12_cell_nbank_ca_allnum", brM12CellNbankCaAllnum);
										} else {
											resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
										}
										if (m12CellNbankObject.get("max_inteday") != null) {
											int brM12CellNbankMaxInteday = m12CellNbankObject.getInteger("max_inteday");//按手机号查询，近12个月在非银机构申请最大间隔天数
											resTO.setBrM12CellNbankMaxInteday(brM12CellNbankMaxInteday);
											resObject.put("br_m12_cell_nbank_max_inteday", brM12CellNbankMaxInteday);
										} else {
											resObject.put("br_m12_cell_nbank_max_inteday", "9999");
										}
									} else {
										resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
										resObject.put("br_m12_cell_nbank_max_inteday", "9999");
									}
								} else {
									resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
									resObject.put("br_m12_cell_nbank_max_inteday", "9999");
									
									resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
								}
							} else {
								resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
								resObject.put("br_m12_id_nbank_max_inteday", "9999");
								resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
								resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
								resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
								resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
								resObject.put("br_m12_cell_nbank_max_inteday", "9999");
								
								resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
							}
							// lst
							if (applyLoanStr.get("lst") != null) {
								JSONObject lstObject = (JSONObject) applyLoanStr.get("lst");
								if (lstObject.get("cell") != null) {
									JSONObject lstCellObject = (JSONObject) lstObject.get("cell");
									if (lstCellObject.get("nbank") != null) {
										JSONObject lstCellNbankObject = (JSONObject) lstCellObject.get("nbank");
										if (lstCellNbankObject.get("inteday") != null) {
											int brlstCellNbankInteday = lstCellNbankObject.getInteger("inteday");//按手机号查询，距最近在非银机构申请的间隔天数
											resTO.setBrlstCellNbankInteday(brlstCellNbankInteday);
											resObject.put("br_lst_cell_nbank_inteday", brlstCellNbankInteday);
										} else {
											resObject.put("br_lst_cell_nbank_inteday", "9999");
										}
									} else {
										resObject.put("br_lst_cell_nbank_inteday", "9999");
									}
								} else {
									resObject.put("br_lst_cell_nbank_inteday", "9999");
								}
							} else {
								resObject.put("br_lst_cell_nbank_inteday", "9999");
							}
							// m3
							if (applyLoanStr.get("m3") != null) {
								JSONObject m3Object = (JSONObject) applyLoanStr.get("m3");
								if (m3Object.get("id") != null) {
									JSONObject m3IdObject = (JSONObject) m3Object.get("id");
									if (m3IdObject.get("nbank") != null) {
										JSONObject m3IdNbankObject = (JSONObject) m3IdObject.get("nbank");
										if (m3IdNbankObject.get("min_monnum") != null) {
											int brM3IdNbankMinMonnum = m3IdNbankObject.getInteger("min_monnum");//按身份证号查询，近3个月在非银机构最小月申请次数
											resTO.setBrM3IdNbankMinMonnum(brM3IdNbankMinMonnum);
											resObject.put("br_m3_id_nbank_min_monnum", brM3IdNbankMinMonnum);
										} else {
											resObject.put("br_m3_id_nbank_min_monnum", "9999");
										}
										// 2020-06-11 add
										if (m3IdNbankObject.get("oth_allnum") != null) {
											int brM3IdNbankOthAllnum = m3IdNbankObject.getInteger("oth_allnum");//按身份证号查询，近3个月在非银机构-其他申请次数
											resTO.setBrM3IdNbankOthAllnum(brM3IdNbankOthAllnum);
											resObject.put("br_m3_id_nbank_oth_allnum", brM3IdNbankOthAllnum);
										} else {
											resObject.put("br_m3_id_nbank_oth_allnum", "9999");
										}
										if (m3IdNbankObject.get("p2p_orgnum") != null) {
											int brM3IdNbankP2pOrgnum = m3IdNbankObject.getInteger("p2p_orgnum");//按身份证号查询，近3个月在非银机构-p2p申请机构数
											resTO.setBrM3IdNbankP2pOrgnum(brM3IdNbankP2pOrgnum);
											resObject.put("br_m3_id_nbank_p2p_orgnum", brM3IdNbankP2pOrgnum);
										} else {
											resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
										}
									} else {
										resObject.put("br_m3_id_nbank_min_monnum", "9999");
										resObject.put("br_m3_id_nbank_oth_allnum", "9999");
										resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
									}
								} else {
									resObject.put("br_m3_id_nbank_min_monnum", "9999");
									resObject.put("br_m3_id_nbank_oth_allnum", "9999");
									resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
								}
								// cell
								if (m3Object.get("cell") != null) {
									JSONObject m3CellObject = (JSONObject) m3Object.get("cell");
									if (m3CellObject.get("pdl") != null) {
										JSONObject m3CellPdlObject = (JSONObject) m3CellObject.get("pdl");
										if (m3CellPdlObject.get("allnum") != null) {
											int brM3CellPdlAllnum = m3CellPdlObject.getInteger("allnum");//按手机号查询，近3个月申请线上小额现金贷的次数
											resTO.setBrM3CellPdlAllnum(brM3CellPdlAllnum);
											resObject.put("br_m3_cell_pdl_allnum", brM3CellPdlAllnum);
										} else {
											resObject.put("br_m3_cell_pdl_allnum", "9999");
										}
									} else {
										resObject.put("br_m3_cell_pdl_allnum", "9999");
									}
									if (m3CellObject.get("max_inteday") != null) {
										int brM3CellMaxInteday = m3CellObject.getInteger("max_inteday");//按手机号查询，近3个月申请最大间隔天数
										resTO.setBrM3CellMaxInteday(brM3CellMaxInteday);
										resObject.put("br_m3_cell_max_inteday", brM3CellMaxInteday);
									} else {
										resObject.put("br_m3_cell_max_inteday", "9999");
									}
									// 2020-06-10 add
									if (m3CellObject.get("avg_monnum") != null) {
										double brM3CellAvgMonnum = m3CellObject.getDouble("avg_monnum");//按手机号查询，近3个月平均每月申请次数(有申请月份平均)
										resTO.setBrM3CellAvgMonnum(brM3CellAvgMonnum);
										resObject.put("br_m3_cell_avg_monnum", brM3CellAvgMonnum);
									} else {
										resObject.put("br_m3_cell_avg_monnum", "9999");
									}
									if (m3CellObject.get("max_monnum") != null) {
										int brM3CellMaxMonnum = m3CellObject.getInteger("max_monnum");//按手机号查询，近3个月最大月申请次数
										resTO.setBrM3CellMaxMonnum(brM3CellMaxMonnum);
										resObject.put("br_m3_cell_max_monnum", brM3CellMaxMonnum);
									} else {
										resObject.put("br_m3_cell_max_monnum", "9999");
									}
									if (m3CellObject.get("nbank") != null) {
										JSONObject m3CellNbankObject = (JSONObject) m3CellObject.get("nbank");
										if (m3CellNbankObject.get("allnum") != null) {
											int brM3CellNbankAllnum = m3CellNbankObject.getInteger("allnum");//按手机号查询，近3个月在非银机构申请次数
											resTO.setBrM3CellNbankAllnum(brM3CellNbankAllnum);
											resObject.put("br_m3_cell_nbank_allnum", brM3CellNbankAllnum);
										} else {
											resObject.put("br_m3_cell_nbank_allnum", "9999");
										}
										if (m3CellNbankObject.get("week_allnum") != null) {
											int brM3CellNbankWeekAllnum = m3CellNbankObject.getInteger("week_allnum");//按手机号查询，近3个月在非银机构周末申请次数
											resTO.setBrM3CellNbankWeekAllnum(brM3CellNbankWeekAllnum);
											resObject.put("br_m3_cell_nbank_week_allnum", brM3CellNbankWeekAllnum);
										} else {
											resObject.put("br_m3_cell_nbank_week_allnum", "9999");
										}
										if (m3CellNbankObject.get("avg_monnum") != null) {
											double brM3CellNbankAvgMonnum = m3CellNbankObject.getDouble("avg_monnum");//按手机号查询，近3个月在非银机构平均每月申请次数(有申请月份平均)
											resTO.setBrM3CellNbankAvgMonnum(brM3CellNbankAvgMonnum);
											resObject.put("br_m3_cell_nbank_avg_monnum", brM3CellNbankAvgMonnum);
										} else {
											resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
										}
										// 2020-06-10 add
										if (m3CellNbankObject.get("p2p_orgnum") != null) {
											int brM3CellNbankP2pOrgnum = m3CellNbankObject.getInteger("p2p_orgnum");//按手机号查询，近3个月在非银机构周末申请次数
											resTO.setBrM3CellNbankP2pOrgnum(brM3CellNbankP2pOrgnum);
											resObject.put("br_m3_cell_nbank_p2p_orgnum", brM3CellNbankP2pOrgnum);
										} else {
											resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
										}
										if (m3CellNbankObject.get("max_monnum") != null) {
											int brM3CellNbankMaxMonnum = m3CellNbankObject.getInteger("max_monnum");//按手机号查询，近3个月在非银机构周末申请次数
											resTO.setBrM3CellNbankMaxMonnum(brM3CellNbankMaxMonnum);
											resObject.put("br_m3_cell_nbank_max_monnum", brM3CellNbankMaxMonnum);
										} else {
											resObject.put("br_m3_cell_nbank_max_monnum", "9999");
										}
									} else {
										resObject.put("br_m3_cell_nbank_allnum", "9999");
										resObject.put("br_m3_cell_nbank_week_allnum", "9999");
										resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
										
										resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
										resObject.put("br_m3_cell_nbank_max_monnum", "9999");
									}
								} else {
									resObject.put("br_m3_cell_nbank_allnum", "9999");
									resObject.put("br_m3_cell_pdl_allnum", "9999");
									resObject.put("br_m3_cell_nbank_week_allnum", "9999");
									resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
									resObject.put("br_m3_id_nbank_min_monnum", "9999");
									resObject.put("br_m3_cell_max_inteday", "9999");
									
									resObject.put("br_m3_id_nbank_oth_allnum", "9999");
									resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
									resObject.put("br_m3_cell_avg_monnum", "9999");
									resObject.put("br_m3_cell_max_monnum", "9999");
									resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
									resObject.put("br_m3_cell_nbank_max_monnum", "9999");
								}
							} else {
								resObject.put("br_m3_cell_nbank_allnum", "9999");
								resObject.put("br_m3_cell_pdl_allnum", "9999");
								resObject.put("br_m3_cell_nbank_week_allnum", "9999");
								resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
								resObject.put("br_m3_id_nbank_min_monnum", "9999");
								resObject.put("br_m3_cell_max_inteday", "9999");
								
								resObject.put("br_m3_id_nbank_oth_allnum", "9999");
								resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
								resObject.put("br_m3_cell_avg_monnum", "9999");
								resObject.put("br_m3_cell_max_monnum", "9999");
								resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
								resObject.put("br_m3_cell_nbank_max_monnum", "9999");
							}
							// fst
							if (applyLoanStr.get("fst") != null) {
								JSONObject fstObject = (JSONObject) applyLoanStr.get("fst");
								if (fstObject.get("id") != null) {
									JSONObject fstIdObject = (JSONObject) fstObject.get("id");
									if (fstIdObject.get("bank") != null) {
										JSONObject fstIdBankObject = (JSONObject) fstIdObject.get("bank");
										if (fstIdBankObject.get("inteday") != null) {
											int brFstIdBankInteday = fstIdBankObject.getInteger("inteday");//按身份证号查询，距最早在银行机构申请的间隔天数
											resTO.setBrFstIdBankInteday(brFstIdBankInteday);
											resObject.put("br_fst_id_bank_inteday", brFstIdBankInteday);
										} else {
											resObject.put("br_fst_id_bank_inteday", "9999");
										}
									} else {
										resObject.put("br_fst_id_bank_inteday", "9999");
									}
								} else {
									resObject.put("br_fst_id_bank_inteday", "9999");
								}
							} else {
								resObject.put("br_fst_id_bank_inteday", "9999");
							}
						} else {
							resObject.put("br_apply_payday_cnt_cell_30d", "9999");
							resObject.put("br_apply_payday_cnt_id_30d", "9999");
							resObject.put("br_m1_id_nbank_week_allnum", "9999");
							resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");		
							resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
							resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");	
							resObject.put("br_m6_id_max_inteday", "9999");
							resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
							resObject.put("br_m6_id_nbank_cf_allnum", "9999");
							resObject.put("br_m6_id_nbank_max_inteday", "9999");
							resObject.put("br_m6_id_nbank_ca_allnum", "9999");
							resObject.put("br_m6_id_nbank_min_monnum", "9999");
							resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
							resObject.put("br_m6_cell_max_inteday", "9999");
							resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
							resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");	
							resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
							resObject.put("br_m12_id_nbank_max_inteday", "9999");
							resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
							resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
							resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
							resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
							resObject.put("br_m12_cell_nbank_max_inteday", "9999");
							resObject.put("br_lst_cell_nbank_inteday", "9999");
							resObject.put("br_m3_cell_pdl_allnum", "9999");
							resObject.put("br_m3_cell_nbank_allnum", "9999");
							resObject.put("br_m3_cell_nbank_week_allnum", "9999");
							resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
							resObject.put("br_m3_id_nbank_min_monnum", "9999");
							resObject.put("br_m3_cell_max_inteday", "9999");		
							resObject.put("br_fst_id_bank_inteday", "9999");
							
							resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
							resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
							resObject.put("br_m3_id_nbank_oth_allnum", "9999");
							resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
							resObject.put("br_m3_cell_avg_monnum", "9999");
							resObject.put("br_m3_cell_max_monnum", "9999");
							resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
							resObject.put("br_m3_cell_nbank_max_monnum", "9999");
							resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
							resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
							resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
						}
					} else {
						resObject.put("br_apply_payday_cnt_cell_30d", "9999");
						resObject.put("br_apply_payday_cnt_id_30d", "9999");
						resObject.put("br_m1_id_nbank_week_allnum", "9999");
						resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");		
						resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
						resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");	
						resObject.put("br_m6_id_max_inteday", "9999");
						resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
						resObject.put("br_m6_id_nbank_cf_allnum", "9999");
						resObject.put("br_m6_id_nbank_max_inteday", "9999");
						resObject.put("br_m6_id_nbank_ca_allnum", "9999");
						resObject.put("br_m6_id_nbank_min_monnum", "9999");
						resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
						resObject.put("br_m6_cell_max_inteday", "9999");
						resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
						resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");	
						resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
						resObject.put("br_m12_id_nbank_max_inteday", "9999");
						resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
						resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
						resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
						resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
						resObject.put("br_m12_cell_nbank_max_inteday", "9999");
						resObject.put("br_lst_cell_nbank_inteday", "9999");
						resObject.put("br_m3_cell_pdl_allnum", "9999");
						resObject.put("br_m3_cell_nbank_allnum", "9999");
						resObject.put("br_m3_cell_nbank_week_allnum", "9999");
						resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
						resObject.put("br_m3_id_nbank_min_monnum", "9999");
						resObject.put("br_m3_cell_max_inteday", "9999");		
						resObject.put("br_fst_id_bank_inteday", "9999");
						
						resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
						resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
						resObject.put("br_m3_id_nbank_oth_allnum", "9999");
						resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
						resObject.put("br_m3_cell_avg_monnum", "9999");
						resObject.put("br_m3_cell_max_monnum", "9999");
						resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
						resObject.put("br_m3_cell_nbank_max_monnum", "9999");
						resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
						resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
						resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
					}
				} else {
					// 百融入库数据
					dataBaiRongInfoReqBO.setResCode(jasonObject.getString("resCode"));
					dataBaiRongInfoReqBO.setResMsg(jasonObject.getString("resMsg"));
					
                    resObject.put("br_fst_id_bank_inteday", "9999");
					resObject.put("br_debtscore", "9999");
					resObject.put("br_frg_level", "9999");
					resObject.put("br_dishonest_idcard", "9999");
					resObject.put("br_enforced_idcard", "9999");
					resObject.put("br_id_bank_fraud", "9999");
					resObject.put("br_id_bank_lost", "9999");
					resObject.put("br_id_nbank_fraud", "9999");
					resObject.put("br_id_nbank_lost", "9999");
					resObject.put("br_id_nbank_nsloan_fraud", "9999");
					resObject.put("br_id_nbank_nsloan_lost", "9999");
					resObject.put("br_id_nbank_sloan_fraud", "9999");
					resObject.put("br_id_nbank_sloan_lost", "9999");
					resObject.put("br_id_nbank_cons_fraud", "9999");
					resObject.put("br_id_nbank_cons_lost", "9999");
					resObject.put("br_id_nbank_finlea_fraud", "9999");
					resObject.put("br_id_nbank_finlea_lost", "9999");
					resObject.put("br_id_nbank_autofin_fraud", "9999");
					resObject.put("br_id_nbank_autofin_lost", "9999");
					resObject.put("br_id_nbank_other_fraud", "9999");
					resObject.put("br_id_nbank_other_lost", "9999");
					resObject.put("br_cell_bank_fraud", "9999");
					resObject.put("br_cell_bank_lost", "9999");
					resObject.put("br_cell_nbank_fraud", "9999");
					resObject.put("br_cell_nbank_lost", "9999");
					resObject.put("br_cell_nbank_nsloan_fraud", "9999");
					resObject.put("br_cell_nbank_nsloan_lost", "9999");
					resObject.put("br_cell_nbank_sloan_fraud", "9999");
					resObject.put("br_cell_nbank_sloan_lost", "9999");
					resObject.put("br_cell_nbank_cons_fraud", "9999");
					resObject.put("br_cell_nbank_cons_lost", "9999");
					resObject.put("br_cell_nbank_finlea_fraud", "9999");
					resObject.put("br_cell_nbank_finlea_lost", "9999");
					resObject.put("br_cell_nbank_autofin_fraud", "9999");
					resObject.put("br_cell_nbank_autofin_lost", "9999");
					resObject.put("br_cell_nbank_other_fraud", "9999");
					resObject.put("br_cell_nbank_other_lost", "9999");
					resObject.put("br_bank_bad_allnum", "9999");
					resObject.put("br_nbank_bad_allnum", "9999");
					resObject.put("br_nbank_nsloan_bad_allnum", "9999");
					resObject.put("br_nbank_sloan_bad_allnum", "9999");
					resObject.put("br_nbank_cons_bad_allnum", "9999");
					resObject.put("br_nbank_finlea_bad_allnum", "9999");
					resObject.put("br_nbank_autofin_bad_allnum", "9999");
					resObject.put("br_nbank_other_bad_allnum", "9999");
					resObject.put("br_court_bad_allnum", "9999");
					resObject.put("br_court_executed_allnum", "9999");
					resObject.put("br_flag_executionlimited", "9999");
					resObject.put("br_apply_payday_cnt_cell_30d", "9999");
					resObject.put("br_apply_payday_cnt_id_30d", "9999");
					resObject.put("br_m1_id_nbank_week_allnum", "9999");
					resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");	
					resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
					resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");	
					resObject.put("br_m6_id_max_inteday", "9999");
					resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
					resObject.put("br_m6_id_nbank_cf_allnum", "9999");
					resObject.put("br_m6_id_nbank_max_inteday", "9999");
					resObject.put("br_m6_id_nbank_ca_allnum", "9999");
					resObject.put("br_m6_id_nbank_min_monnum", "9999");
					resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
					resObject.put("br_m6_cell_max_inteday", "9999");
					resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
					resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");	
					resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
					resObject.put("br_m12_id_nbank_max_inteday", "9999");
					resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
					resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
					resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
					resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
					resObject.put("br_m12_cell_nbank_max_inteday", "9999");
					resObject.put("br_lst_cell_nbank_inteday", "9999");
					resObject.put("br_m3_cell_pdl_allnum", "9999");
					
					resObject.put("br_m3_cell_nbank_allnum", "9999");
					resObject.put("br_m3_cell_nbank_week_allnum", "9999");
					resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
					resObject.put("br_m3_id_nbank_min_monnum", "9999");
					resObject.put("br_m3_cell_max_inteday", "9999");	
					
					resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
					resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
					resObject.put("br_m3_id_nbank_oth_allnum", "9999");
					resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
					resObject.put("br_m3_cell_avg_monnum", "9999");
					resObject.put("br_m3_cell_max_monnum", "9999");
					resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
					resObject.put("br_m3_cell_nbank_max_monnum", "9999");
					resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
					resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
					resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
				}
				resTO.setResCode((String) jasonObject.get("resCode"));
				resTO.setResMsg((String) jasonObject.get("resMsg"));
			} else {
				// 百融入库参数
				dataBaiRongInfoReqBO.setResCode("9999");
				dataBaiRongInfoReqBO.setResMsg("百融接口返回数据异常");
				
                resObject.put("br_fst_id_bank_inteday", "9999");
				resObject.put("br_debtscore", "9999");
				resObject.put("br_frg_level", "9999");
				resObject.put("br_dishonest_idcard", "9999");
				resObject.put("br_enforced_idcard", "9999");
				resObject.put("br_id_bank_fraud", "9999");
				resObject.put("br_id_bank_lost", "9999");
				resObject.put("br_id_nbank_fraud", "9999");
				resObject.put("br_id_nbank_lost", "9999");
				resObject.put("br_id_nbank_nsloan_fraud", "9999");
				resObject.put("br_id_nbank_nsloan_lost", "9999");
				resObject.put("br_id_nbank_sloan_fraud", "9999");
				resObject.put("br_id_nbank_sloan_lost", "9999");
				resObject.put("br_id_nbank_cons_fraud", "9999");
				resObject.put("br_id_nbank_cons_lost", "9999");
				resObject.put("br_id_nbank_finlea_fraud", "9999");
				resObject.put("br_id_nbank_finlea_lost", "9999");
				resObject.put("br_id_nbank_autofin_fraud", "9999");
				resObject.put("br_id_nbank_autofin_lost", "9999");
				resObject.put("br_id_nbank_other_fraud", "9999");
				resObject.put("br_id_nbank_other_lost", "9999");
				resObject.put("br_cell_bank_fraud", "9999");
				resObject.put("br_cell_bank_lost", "9999");
				resObject.put("br_cell_nbank_fraud", "9999");
				resObject.put("br_cell_nbank_lost", "9999");
				resObject.put("br_cell_nbank_nsloan_fraud", "9999");
				resObject.put("br_cell_nbank_nsloan_lost", "9999");
				resObject.put("br_cell_nbank_sloan_fraud", "9999");
				resObject.put("br_cell_nbank_sloan_lost", "9999");
				resObject.put("br_cell_nbank_cons_fraud", "9999");
				resObject.put("br_cell_nbank_cons_lost", "9999");
				resObject.put("br_cell_nbank_finlea_fraud", "9999");
				resObject.put("br_cell_nbank_finlea_lost", "9999");
				resObject.put("br_cell_nbank_autofin_fraud", "9999");
				resObject.put("br_cell_nbank_autofin_lost", "9999");
				resObject.put("br_cell_nbank_other_fraud", "9999");
				resObject.put("br_cell_nbank_other_lost", "9999");
				resObject.put("br_bank_bad_allnum", "9999");
				resObject.put("br_nbank_bad_allnum", "9999");
				resObject.put("br_nbank_nsloan_bad_allnum", "9999");
				resObject.put("br_nbank_sloan_bad_allnum", "9999");
				resObject.put("br_nbank_cons_bad_allnum", "9999");
				resObject.put("br_nbank_finlea_bad_allnum", "9999");
				resObject.put("br_nbank_autofin_bad_allnum", "9999");
				resObject.put("br_nbank_other_bad_allnum", "9999");
				resObject.put("br_court_bad_allnum", "9999");
				resObject.put("br_court_executed_allnum", "9999");
				resObject.put("br_flag_executionlimited", "9999");
				resObject.put("br_apply_payday_cnt_cell_30d", "9999");
				resObject.put("br_apply_payday_cnt_id_30d", "9999");
				resObject.put("br_m1_id_nbank_week_allnum", "9999");
				resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");	
				resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
				resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");	
				resObject.put("br_m6_id_max_inteday", "9999");
				resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
				resObject.put("br_m6_id_nbank_cf_allnum", "9999");
				resObject.put("br_m6_id_nbank_max_inteday", "9999");
				resObject.put("br_m6_id_nbank_ca_allnum", "9999");
				resObject.put("br_m6_id_nbank_min_monnum", "9999");
				resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
				resObject.put("br_m6_cell_max_inteday", "9999");
				resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
				resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");	
				resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
				resObject.put("br_m12_id_nbank_max_inteday", "9999");
				resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
				resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
				resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
				resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
				resObject.put("br_m12_cell_nbank_max_inteday", "9999");
				resObject.put("br_lst_cell_nbank_inteday", "9999");
				resObject.put("br_m3_cell_pdl_allnum", "9999");
				
				resObject.put("br_m3_cell_nbank_allnum", "9999");
				resObject.put("br_m3_cell_nbank_week_allnum", "9999");
				resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
				resObject.put("br_m3_id_nbank_min_monnum", "9999");
				resObject.put("br_m3_cell_max_inteday", "9999");		
				
				resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
				resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
				resObject.put("br_m3_id_nbank_oth_allnum", "9999");
				resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
				resObject.put("br_m3_cell_avg_monnum", "9999");
				resObject.put("br_m3_cell_max_monnum", "9999");
				resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
				resObject.put("br_m3_cell_nbank_max_monnum", "9999");
				resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
				resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
				resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
				resTO.setResCode("1111");
				resTO.setResMsg("百融画像评估查询接口返回数据异常");
			}
		} catch (Exception e) {
			log.info("调用百融画像评估查询接口异常：{}", e);
			resTO.setResCode("1111");
			resTO.setResMsg("调用百融画像评估查询接口异常");
			resObject.put("br_fst_id_bank_inteday", "9999");
			resObject.put("br_debtscore", "9999");
			resObject.put("br_frg_level", "9999");
			resObject.put("br_dishonest_idcard", "9999");
			resObject.put("br_enforced_idcard", "9999");
			resObject.put("br_id_bank_fraud", "9999");
			resObject.put("br_id_bank_lost", "9999");
			resObject.put("br_id_nbank_fraud", "9999");
			resObject.put("br_id_nbank_lost", "9999");
			resObject.put("br_id_nbank_nsloan_fraud", "9999");
			resObject.put("br_id_nbank_nsloan_lost", "9999");
			resObject.put("br_id_nbank_sloan_fraud", "9999");
			resObject.put("br_id_nbank_sloan_lost", "9999");
			resObject.put("br_id_nbank_cons_fraud", "9999");
			resObject.put("br_id_nbank_cons_lost", "9999");
			resObject.put("br_id_nbank_finlea_fraud", "9999");
			resObject.put("br_id_nbank_finlea_lost", "9999");
			resObject.put("br_id_nbank_autofin_fraud", "9999");
			resObject.put("br_id_nbank_autofin_lost", "9999");
			resObject.put("br_id_nbank_other_fraud", "9999");
			resObject.put("br_id_nbank_other_lost", "9999");
			resObject.put("br_cell_bank_fraud", "9999");
			resObject.put("br_cell_bank_lost", "9999");
			resObject.put("br_cell_nbank_fraud", "9999");
			resObject.put("br_cell_nbank_lost", "9999");
			resObject.put("br_cell_nbank_nsloan_fraud", "9999");
			resObject.put("br_cell_nbank_nsloan_lost", "9999");
			resObject.put("br_cell_nbank_sloan_fraud", "9999");
			resObject.put("br_cell_nbank_sloan_lost", "9999");
			resObject.put("br_cell_nbank_cons_fraud", "9999");
			resObject.put("br_cell_nbank_cons_lost", "9999");
			resObject.put("br_cell_nbank_finlea_fraud", "9999");
			resObject.put("br_cell_nbank_finlea_lost", "9999");
			resObject.put("br_cell_nbank_autofin_fraud", "9999");
			resObject.put("br_cell_nbank_autofin_lost", "9999");
			resObject.put("br_cell_nbank_other_fraud", "9999");
			resObject.put("br_cell_nbank_other_lost", "9999");
			resObject.put("br_bank_bad_allnum", "9999");
			resObject.put("br_nbank_bad_allnum", "9999");
			resObject.put("br_nbank_nsloan_bad_allnum", "9999");
			resObject.put("br_nbank_sloan_bad_allnum", "9999");
			resObject.put("br_nbank_cons_bad_allnum", "9999");
			resObject.put("br_nbank_finlea_bad_allnum", "9999");
			resObject.put("br_nbank_autofin_bad_allnum", "9999");
			resObject.put("br_nbank_other_bad_allnum", "9999");
			resObject.put("br_court_bad_allnum", "9999");
			resObject.put("br_court_executed_allnum", "9999");
			resObject.put("br_flag_executionlimited", "9999");
			resObject.put("br_apply_payday_cnt_cell_30d", "9999");
			resObject.put("br_apply_payday_cnt_id_30d", "9999");
			resObject.put("br_m1_id_nbank_week_allnum", "9999");
			resObject.put("br_m6_id_nbank_nsloan_allnum", "9999");	
			resObject.put("br_apply_nmfin_cnt_id_7d", "9999");
			resObject.put("br_apply_nmfin_cnt_cell_7d", "9999");	
			resObject.put("br_m6_id_max_inteday", "9999");
			resObject.put("br_apply_nbank_avgcnt_id_m6", "9999");
			resObject.put("br_m6_id_nbank_cf_allnum", "9999");
			resObject.put("br_m6_id_nbank_max_inteday", "9999");
			resObject.put("br_m6_id_nbank_ca_allnum", "9999");
			resObject.put("br_m6_id_nbank_min_monnum", "9999");
			resObject.put("br_apply_nbank_avgcnt_cell_m6", "9999");
			resObject.put("br_m6_cell_max_inteday", "9999");
			resObject.put("br_apply_payday_orgcnt_id_15d", "9999");
			resObject.put("br_apply_payday_orgcnt_cell_15d", "9999");	
			resObject.put("br_apply_bank_orgcnt_id_m12", "9999");
			resObject.put("br_m12_id_nbank_max_inteday", "9999");
			resObject.put("br_m12_id_nbank_cons_orgnum", "9999");
			resObject.put("br_m12_id_nbank_nsloan_allnum", "9999");
			resObject.put("br_m12_id_nbank_ca_orgnum", "9999");
			resObject.put("br_apply_bank_orgcnt_cell_m12", "9999");
			resObject.put("br_m12_cell_nbank_max_inteday", "9999");
			resObject.put("br_lst_cell_nbank_inteday", "9999");
			resObject.put("br_m3_cell_pdl_allnum", "9999");
			
			resObject.put("br_m3_cell_nbank_allnum", "9999");
			resObject.put("br_m3_cell_nbank_week_allnum", "9999");
			resObject.put("br_m3_cell_nbank_avg_monnum", "9999");
			resObject.put("br_m3_id_nbank_min_monnum", "9999");
			resObject.put("br_m3_cell_max_inteday", "9999");
			
			resObject.put("br_d7_id_nbank_p2p_allnum", "9999");
			resObject.put("br_d15_cell_nbank_ca_allnum", "9999");
			resObject.put("br_m3_id_nbank_oth_allnum", "9999");
			resObject.put("br_m3_id_nbank_p2p_orgnum", "9999");
			resObject.put("br_m3_cell_avg_monnum", "9999");
			resObject.put("br_m3_cell_max_monnum", "9999");
			resObject.put("br_m3_cell_nbank_p2p_orgnum", "9999");
			resObject.put("br_m3_cell_nbank_max_monnum", "9999");
			resObject.put("br_m6_cell_nbank_p2p_allnum", "9999");
			resObject.put("br_m6_id_nbank_p2p_allnum", "9999");
			resObject.put("br_m12_cell_nbank_ca_allnum", "9999");
			
			// 百融入库参数
			dataBaiRongInfoReqBO.setResCode("9999");
			dataBaiRongInfoReqBO.setResMsg("百融接口返回数据异常");
		}
		dataBaiRongInfoReqBO.setCreateTime(new Date());
		dataBaiRongInfoService.createDataBaiRongInfo(dataBaiRongInfoReqBO);
		resTO.setResData(resObject.toString());
		log.info("调用百融画像评估查询接口返回结果：{}", JSONObject.toJSONString(resTO));
		return resTO;
	}

	@SuppressWarnings("unchecked")
	@PostConstruct
	@Override
	public void register() {
		registerToWsServiceFactory(this, BaiRongReqTO.class);
	}
 
	private void handleRequestParam(BaiRongReqTO req) {
		String attr = req.getAttr();
		switch (attr) {
		case "唯品会":
			req.setQueryModule("SpecialList_c,ExecutionLimited");
			break;
		case "苏宁":
			req.setQueryModule("SpecialList_c,ExecutionLimited");
			break;
//		case "分期乐":
//			req.setQueryModule("SpecialList_c,FraudRelation_g,ExecutionLimited");
//			break;	
//		case "大额":
//			req.setQueryModule("SpecialList_c,FraudRelation_g,DebtRepayStress,ApplyLoanStr,ExecutionLimited");
//			break;		
		default:
			req.setQueryModule("SpecialList_c,ExecutionLimited");
			break;
		}
		
	}
	
}
